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:
László Monda
2017-08-10 01:13:04 +02:00
parent 71b43b8625
commit c81291346f

View File

@@ -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");
}