Skip to content

Commit

Permalink
Change: enable setleds on battery
Browse files Browse the repository at this point in the history
  • Loading branch information
otomon10 committed Nov 22, 2020
1 parent c8a024a commit 8492ee1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/nrf52/ws2812.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ void pwm_handler(nrfx_pwm_evt_type_t event_type) {
}

void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds) {
if (nrfx_power_usbstatus_get() == NRFX_POWER_USB_STATE_CONNECTED ||
nrfx_power_usbstatus_get() == NRFX_POWER_USB_STATE_READY) {
ws2812_setleds_pin(ledarray, number_of_leds, RGB_DI_PIN);
}
ws2812_setleds_pin(ledarray, number_of_leds, RGB_DI_PIN);
}

void ws2812_setleds_pin (LED_TYPE *ledarray, uint16_t number_of_leds,uint8_t pinmask){
Expand Down

0 comments on commit 8492ee1

Please sign in to comment.