1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Fixed initialisation problem with LED_STRIP.

This commit is contained in:
mikeller 2019-02-08 03:01:36 +13:00 committed by Michael Keller
parent 760300b562
commit 9f8cafbf8b
8 changed files with 64 additions and 73 deletions

View file

@ -1150,6 +1150,8 @@ bool setModeColor(ledModeIndex_e modeIndex, int modeColorIndex, int colorIndex)
void ledStripEnable(void)
{
ws2811LedStripEnable();
ledStripEnabled = true;
}
@ -1157,8 +1159,8 @@ void ledStripDisable(void)
{
ledStripEnabled = false;
previousProfileColorIndex = COLOR_UNDEFINED;
setStripColor(&HSV(BLACK));
setStripColor(&HSV(BLACK));
ws2811UpdateStrip((ledStripFormatRGB_e)ledStripConfig()->ledstrip_grb_rgb);
}