Skip to content

Commit

Permalink
fix simpleblade power-down weirness
Browse files Browse the repository at this point in the history
  • Loading branch information
profezzorn committed Mar 5, 2022
1 parent 8ad3df8 commit 1a59804
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blades/pwm_pin.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ void TeardownTimer(uint32_t instance) {
if (0 == --timer_use_counts[instance]) {
stm32l4_timer_stop(&stm32l4_pwm[instance]);
stm32l4_timer_disable(&stm32l4_pwm[instance]);
if (instance) TeardownTimer(0);
if (instance != PWM_SYNC_INSTANCE) {
TeardownTimer(PWM_SYNC_INSTANCE);
}
}
}

Expand Down

0 comments on commit 1a59804

Please sign in to comment.