logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git
commit: d035f02c08b587213a35335c1d523af10b11b543
parent 47e66c8a2418893c864704563d554641d1b0428c
Author: HorrorTroll <sonicvipduc@gmail.com>
Date:   Sun, 16 Feb 2025 22:07:17 +0700

Patch up issue for inverted complementary output on Backlight (#24794)

Change complementary output to active high, when backlight on state is 1

Diffstat:

Mplatforms/chibios/drivers/backlight_pwm.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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