Skip to content

Commit d13ebd2

Browse files
committed
Use . syntax instead of :: on delay_ms
1 parent 1a2b6ea commit d13ebd2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/delay.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl Delay {
2929
self.syst
3030
}
3131

32-
/// Delay using the Cortex-M systick for a certain duration, µs.
32+
/// Delay using the Cortex-M systick for a certain duration, in µs.
3333
#[inline]
3434
pub fn delay_us(&mut self, us: u32) {
3535
let ticks = (us as u64) * (self.ahb_frequency as u64) / 1_000_000;
@@ -57,15 +57,15 @@ impl Delay {
5757
self.syst.disable_counter();
5858
}
5959

60-
/// Delay using the Cortex-M systick for a certain duration, ms.
60+
/// Delay using the Cortex-M systick for a certain duration, in ms.
6161
#[inline]
6262
pub fn delay_ms(&mut self, mut ms: u32) {
6363
// 4294967 is the highest u32 value which you can multiply by 1000 without overflow
6464
while ms > 4294967 {
65-
Delay::delay_us(self, 4294967000u32);
65+
self.delay_us(4294967000u32);
6666
ms -= 4294967;
6767
}
68-
Delay::delay_us(self, ms * 1_000);
68+
self.delay_us(ms * 1_000);
6969
}
7070
}
7171

0 commit comments

Comments
 (0)