Add LedDisplay_SetCurrentKeymapText() and use it when reinitializaing the LED display upon disconnect. This fixes the bug that shows FTY on the display upon I2C watchdog recoveries.
This commit is contained in:
@@ -70,10 +70,9 @@ void LedSlaveDriver_Init(uint8_t ledDriverId) {
|
||||
currentLedDriverState->phase = LedDriverPhase_SetFunctionFrame;
|
||||
currentLedDriverState->ledIndex = 0;
|
||||
memset(LedDriverValues[ledDriverId], LED_BRIGHTNESS_LEVEL, LED_DRIVER_LED_COUNT);
|
||||
LedDisplay_SetText(3, "FTY");
|
||||
LedDisplay_SetCurrentKeymapText();
|
||||
}
|
||||
|
||||
|
||||
status_t LedSlaveDriver_Update(uint8_t ledDriverId) {
|
||||
status_t status = kStatus_Uhk_IdleSlave;
|
||||
uint8_t *ledValues = LedDriverValues[ledDriverId];
|
||||
|
||||
Reference in New Issue
Block a user