Initialize target LED values with zeros, so that they'll be explicitly set to non-zero values by the LED updater algorithm. This makes the desired LEDs light up.
This commit is contained in:
@@ -64,7 +64,7 @@ void LedSlaveDriver_Init(uint8_t ledDriverId) {
|
||||
currentLedDriverState->phase = LedDriverPhase_SetFunctionFrame;
|
||||
currentLedDriverState->ledIndex = 0;
|
||||
LedDriverStates[LedDriverId_Left].setupLedControlRegistersCommand[7] |= 0b00000010; // Enable the LED of the ISO key.
|
||||
memset(currentLedDriverState->targetLedValues, 0xff, LED_DRIVER_LED_COUNT);
|
||||
memset(currentLedDriverState->targetLedValues, 0x00, LED_DRIVER_LED_COUNT);
|
||||
SetLeds(0xff);
|
||||
LedDisplay_SetText(3, "ABC");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user