diff options
| author | Daniel Bevenius <[email protected]> | 2022-04-21 18:27:00 +0200 |
|---|---|---|
| committer | Daniel Bevenius <[email protected]> | 2022-04-21 18:27:00 +0200 |
| commit | db862a60ee78f48c63d77fbd5c0ccd84fa1ce391 (patch) | |
| tree | 6b00f37b270f720188ba1aba964ff91c5749e3ae | |
| parent | de7dd59fa9553a1a6b75ff09238c9529277b95e7 (diff) | |
Fix typo in driver.rs
| -rw-r--r-- | embassy/src/time/driver.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy/src/time/driver.rs b/embassy/src/time/driver.rs index 29256aab5..760a828b3 100644 --- a/embassy/src/time/driver.rs +++ b/embassy/src/time/driver.rs | |||
| @@ -103,7 +103,7 @@ pub trait Driver: Send + Sync + 'static { | |||
| 103 | fn set_alarm_callback(&self, alarm: AlarmHandle, callback: fn(*mut ()), ctx: *mut ()); | 103 | fn set_alarm_callback(&self, alarm: AlarmHandle, callback: fn(*mut ()), ctx: *mut ()); |
| 104 | 104 | ||
| 105 | /// Sets an alarm at the given timestamp. When the current timestamp reaches the alarm | 105 | /// Sets an alarm at the given timestamp. When the current timestamp reaches the alarm |
| 106 | /// timestamp, the provided callback funcion will be called. | 106 | /// timestamp, the provided callback function will be called. |
| 107 | /// | 107 | /// |
| 108 | /// If `timestamp` is already in the past, the alarm callback must be immediately fired. | 108 | /// If `timestamp` is already in the past, the alarm callback must be immediately fired. |
| 109 | /// In this case, it is allowed (but not mandatory) to call the alarm callback synchronously from `set_alarm`. | 109 | /// In this case, it is allowed (but not mandatory) to call the alarm callback synchronously from `set_alarm`. |
