Skip to content

Commit

Permalink
sn32 rgb driver: prefer UINT16_MAX instead of hardcoded value
Browse files Browse the repository at this point in the history
  • Loading branch information
dexter93 committed Jan 2, 2024
1 parent 3ab2de0 commit a426e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/led/sn32/rgb_matrix_sn32f2xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ static void rgb_callback(PWMDriver *pwmp) {
update_pwm_channels(pwmp);
chSysLockFromISR();
// Advance the timer to just before the wrap-around, that will start a new PWM cycle
pwm_lld_change_counter(pwmp, 0xFFFF);
pwm_lld_change_counter(pwmp, UINT16_MAX);
// Enable the interrupt
pwmEnablePeriodicNotificationI(pwmp);
chSysUnlockFromISR();
Expand Down

0 comments on commit a426e9c

Please sign in to comment.