Merge pull request #2593 from MabezDev/cloneable-delay

time: cloneable delay
This commit is contained in:
Dario Nieuwenhuis 2024-02-18 17:45:44 +00:00 committed by GitHub
commit df6cf8da95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {