Skip to content

Commit

Permalink
FMT
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernQ committed Nov 12, 2024
1 parent aab690f commit 5684277
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion esp-hal/src/ledc/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,9 @@ impl<S: crate::ledc::timer::TimerSpeed> Channel<'_, S> {

// this is needed to make low duty-resolutions / high frequencies work
#[cfg(any(esp32h2, esp32c6))]
self.ledc.ch_gamma_wr_addr(self.number as usize).write(|w| unsafe { w.bits(0)} );
self.ledc
.ch_gamma_wr_addr(self.number as usize)
.write(|w| unsafe { w.bits(0) });

self.start_duty_without_fading();
}
Expand Down

0 comments on commit 5684277

Please sign in to comment.