Ensure LED configuration is re-evaluated after changes to led
configuration are made via MSP.
This commit is contained in:
parent
a2628c59d5
commit
d2536e3792
|
@ -337,7 +337,7 @@ void updateLedCount(void)
|
|||
}
|
||||
}
|
||||
|
||||
static void reevalulateLedConfig(void)
|
||||
void reevalulateLedConfig(void)
|
||||
{
|
||||
updateLedCount();
|
||||
determineLedStripDimensions();
|
||||
|
|
|
@ -73,5 +73,5 @@ bool parseColor(uint8_t index, const char *colorConfig);
|
|||
void applyDefaultColors(hsvColor_t *colors, uint8_t colorCount);
|
||||
|
||||
void ledStripEnable(void);
|
||||
|
||||
void reevalulateLedConfig(void);
|
||||
|
||||
|
|
|
@ -1469,6 +1469,8 @@ static bool processInCommand(void)
|
|||
|
||||
mask = read8();
|
||||
ledConfig->xy |= CALCULATE_LED_Y(mask);
|
||||
|
||||
reevalulateLedConfig();
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue