Skip to content

Commit 4399c5d

Browse files
astapletonusbalbin
andauthored
Fix comment
Co-authored-by: Albin Hedman <[email protected]>
1 parent 93f4f3c commit 4399c5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dwt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl Delay {
102102

103103
impl embedded_hal::delay::DelayNs for Delay {
104104
fn delay_ns(&mut self, ns: u32) {
105-
// Convert us to ticks
105+
// Convert ns to ticks
106106
let start = DWT::cycle_count();
107107
let ticks = (ns as u64 * self.clock.raw() as u64) / 1_000_000_000;
108108
Delay::delay_ticks(start, ticks);

0 commit comments

Comments
 (0)