aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorrorTroll <[email protected]>2025-02-16 22:07:17 +0700
committerGitHub <[email protected]>2025-02-16 15:07:17 +0000
commitd035f02c08b587213a35335c1d523af10b11b543 (patch)
treebf56836fe122abbaf8ee16eb0bf4c1ec259b05d4
parent47e66c8a2418893c864704563d554641d1b0428c (diff)
downloadqmk_firmware-d035f02c08b587213a35335c1d523af10b11b543.tar.gz
qmk_firmware-d035f02c08b587213a35335c1d523af10b11b543.zip
Patch up issue for inverted complementary output on Backlight (#24794)
Change complementary output to active high, when backlight on state is 1
-rw-r--r--platforms/chibios/drivers/backlight_pwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/platforms/chibios/drivers/backlight_pwm.c b/platforms/chibios/drivers/backlight_pwm.c
index 25fe7962b0..47ad008415 100644
--- a/platforms/chibios/drivers/backlight_pwm.c
+++ b/platforms/chibios/drivers/backlight_pwm.c
@@ -28,9 +28,9 @@
// Support for pins which are on TIM1_CH1N
#ifdef BACKLIGHT_PWM_COMPLEMENTARY_OUTPUT
# if BACKLIGHT_ON_STATE == 1
-# define PWM_OUTPUT_MODE PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW;
-# else
# define PWM_OUTPUT_MODE PWM_COMPLEMENTARY_OUTPUT_ACTIVE_HIGH;
+# else
+# define PWM_OUTPUT_MODE PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW;
# endif
#else
# if BACKLIGHT_ON_STATE == 1