From c81291346f642366f3334db71bde3e46202227c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Thu, 10 Aug 2017 01:13:04 +0200 Subject: [PATCH] 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. --- right/src/slave_drivers/is31fl3731_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/right/src/slave_drivers/is31fl3731_driver.c b/right/src/slave_drivers/is31fl3731_driver.c index 0ed41ad..de0f982 100644 --- a/right/src/slave_drivers/is31fl3731_driver.c +++ b/right/src/slave_drivers/is31fl3731_driver.c @@ -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"); }