Skip to content

Commit

Permalink
led: fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Jul 22, 2024
1 parent c00fa14 commit fd429a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void led_pwm(uint8_t pwmval, float looptime) {
}
}

// duty 0-16
// duty 0-31
static void led_flash_duty(uint32_t period_ms, uint8_t duty) {
const uint32_t period = period_ms * 1000;
const uint32_t divider = (period * duty) >> 5;
Expand Down

0 comments on commit fd429a7

Please sign in to comment.