From 20cd7d09f429be84481a314f6eb174bcfb82612a Mon Sep 17 00:00:00 2001 From: Scott Mabin Date: Sun, 18 Feb 2024 17:01:09 +0000 Subject: [PATCH] time: cloneable delay --- embassy-time/src/delay.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/embassy-time/src/delay.rs b/embassy-time/src/delay.rs index 7ef5961f..f77859d4 100644 --- a/embassy-time/src/delay.rs +++ b/embassy-time/src/delay.rs @@ -13,6 +13,7 @@ pub fn block_for(duration: Duration) { /// the amount provided, but accuracy can be affected by many factors, including interrupt usage. /// Make sure to use a suitable tick rate for your use case. The tick rate is defined by the currently /// active driver. +#[derive(Clone)] pub struct Delay; impl embedded_hal_1::delay::DelayNs for Delay {