From 6c749e2c4c21d38eeb5342137cbf467f7efd8987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Sat, 18 Mar 2017 22:43:22 +0100 Subject: [PATCH] Set the LED PWM values of both halves at once. --- right/src/usb_protocol_handler.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/right/src/usb_protocol_handler.c b/right/src/usb_protocol_handler.c index 2379493..ea45a79 100644 --- a/right/src/usb_protocol_handler.c +++ b/right/src/usb_protocol_handler.c @@ -191,12 +191,8 @@ void applyConfig() void setLedPwm() { #if UHK_PCB_MAJOR_VERSION >= 7 - uint8_t isRightKeyboardHalf = GenericHidInBuffer[1]; - uint8_t brightnessPercent = GenericHidInBuffer[2]; - if (isRightKeyboardHalf) { - LedPwm_SetBrightness(brightnessPercent); - } else { - UhkModuleStates[0].ledPwmBrightness = brightnessPercent; - } + uint8_t brightnessPercent = GenericHidInBuffer[1]; + LedPwm_SetBrightness(brightnessPercent); + UhkModuleStates[0].ledPwmBrightness = brightnessPercent; #endif }