diff options
| author | Scott Mabin <[email protected]> | 2024-02-18 17:01:09 +0000 |
|---|---|---|
| committer | Scott Mabin <[email protected]> | 2024-02-18 17:01:09 +0000 |
| commit | 20cd7d09f429be84481a314f6eb174bcfb82612a (patch) | |
| tree | d71df2c7e01e363c8f4d137c94c692c4cd793eec /embassy-time | |
| parent | 377e58e408f830f79171a470ba602b7d8bc525e4 (diff) | |
time: cloneable delay
Diffstat (limited to 'embassy-time')
| -rw-r--r-- | embassy-time/src/delay.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-time/src/delay.rs b/embassy-time/src/delay.rs index 7ef5961f0..f77859d4a 100644 --- a/embassy-time/src/delay.rs +++ b/embassy-time/src/delay.rs | |||
| @@ -13,6 +13,7 @@ pub fn block_for(duration: Duration) { | |||
| 13 | /// the amount provided, but accuracy can be affected by many factors, including interrupt usage. | 13 | /// the amount provided, but accuracy can be affected by many factors, including interrupt usage. |
| 14 | /// Make sure to use a suitable tick rate for your use case. The tick rate is defined by the currently | 14 | /// Make sure to use a suitable tick rate for your use case. The tick rate is defined by the currently |
| 15 | /// active driver. | 15 | /// active driver. |
| 16 | #[derive(Clone)] | ||
| 16 | pub struct Delay; | 17 | pub struct Delay; |
| 17 | 18 | ||
| 18 | impl embedded_hal_1::delay::DelayNs for Delay { | 19 | impl embedded_hal_1::delay::DelayNs for Delay { |
