From 76a80c3090a7aa929c26ebf2dec356de1c5fc6c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Fri, 29 Sep 2017 01:27:34 +0200 Subject: [PATCH] Inline SetLeds() --- right/src/slave_drivers/is31fl3731_driver.c | 9 +-------- right/src/slave_drivers/is31fl3731_driver.h | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/right/src/slave_drivers/is31fl3731_driver.c b/right/src/slave_drivers/is31fl3731_driver.c index 1608d08..4d5abd0 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. - SetLeds(0xff); + memset(LedDriverStates[ledDriverId].sourceLedValues, 0xff, LED_DRIVER_LED_COUNT); LedDisplay_SetText(3, "ABC"); } @@ -157,10 +157,3 @@ status_t LedSlaveDriver_Update(uint8_t ledDriverId) { return status; } - -void SetLeds(uint8_t ledBrightness) -{ - for (uint8_t i=0; i