diff options
| author | HorrorTroll <sonicvipduc@gmail.com> | 2025-02-16 22:07:17 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-16 15:07:17 +0000 |
| commit | d035f02c08b587213a35335c1d523af10b11b543 (patch) | |
| tree | bf56836fe122abbaf8ee16eb0bf4c1ec259b05d4 /platforms | |
| parent | 47e66c8a2418893c864704563d554641d1b0428c (diff) | |
Patch up issue for inverted complementary output on Backlight (#24794)
Change complementary output to active high, when backlight on state is 1
Diffstat (limited to 'platforms')
| -rw-r--r-- | platforms/chibios/drivers/backlight_pwm.c | 4 |
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 @@ | |||
| 28 | // Support for pins which are on TIM1_CH1N | 28 | // Support for pins which are on TIM1_CH1N |
| 29 | #ifdef BACKLIGHT_PWM_COMPLEMENTARY_OUTPUT | 29 | #ifdef BACKLIGHT_PWM_COMPLEMENTARY_OUTPUT |
| 30 | # if BACKLIGHT_ON_STATE == 1 | 30 | # if BACKLIGHT_ON_STATE == 1 |
| 31 | # define PWM_OUTPUT_MODE PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW; | ||
| 32 | # else | ||
| 33 | # define PWM_OUTPUT_MODE PWM_COMPLEMENTARY_OUTPUT_ACTIVE_HIGH; | 31 | # define PWM_OUTPUT_MODE PWM_COMPLEMENTARY_OUTPUT_ACTIVE_HIGH; |
| 32 | # else | ||
| 33 | # define PWM_OUTPUT_MODE PWM_COMPLEMENTARY_OUTPUT_ACTIVE_LOW; | ||
| 34 | # endif | 34 | # endif |
| 35 | #else | 35 | #else |
| 36 | # if BACKLIGHT_ON_STATE == 1 | 36 | # if BACKLIGHT_ON_STATE == 1 |
