1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 17:55:30 +03:00

LED on/off changes to ledStripEnabled flag

This commit is contained in:
Chris Penny 2015-01-21 09:54:27 +00:00
parent bfa79ab010
commit a6409a030b

View file

@ -759,8 +759,6 @@ void updateLedStrip(void)
} }
uint32_t now = micros(); uint32_t now = micros();
bool indicatorFlashNow = indicatorFlashNow = (int32_t)(now - nextIndicatorFlashAt) >= 0L; bool indicatorFlashNow = indicatorFlashNow = (int32_t)(now - nextIndicatorFlashAt) >= 0L;
@ -907,6 +905,7 @@ void ledStripEnable(void)
static void ledStripDisable(void) static void ledStripDisable(void)
{ {
setStripColor(&hsv_black); setStripColor(&hsv_black);
ws2811UpdateStrip(); ws2811UpdateStrip();
} }
#endif #endif