diff options
Diffstat (limited to 'board/spring/usb_charging.c')
-rw-r--r-- | board/spring/usb_charging.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/spring/usb_charging.c b/board/spring/usb_charging.c index e644715d83..74da3cdd1f 100644 --- a/board/spring/usb_charging.c +++ b/board/spring/usb_charging.c @@ -376,7 +376,7 @@ void board_pwm_duty_cycle(int percent) if (system_get_image_copy() == SYSTEM_IMAGE_RW) { if (get_time().val - jump_time.val < (20 * SECOND) && percent > jump_pwm_duty) - percent = jump_pwm_duty; + percent = MAX(jump_pwm_duty, I_LIMIT_MAX); } STM32_TIM_CCR1(3) = percent; |