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:
parent
760300b562
commit
9f8cafbf8b
8 changed files with 64 additions and 73 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue