Merge pull request 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

@ -13,6 +13,7 @@ pub fn block_for(duration: Duration) {
/// the amount provided, but accuracy can be affected by many factors, including interrupt usage. /// 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 /// Make sure to use a suitable tick rate for your use case. The tick rate is defined by the currently
/// active driver. /// active driver.
#[derive(Clone)]
pub struct Delay; pub struct Delay;
impl embedded_hal_1::delay::DelayNs for Delay { impl embedded_hal_1::delay::DelayNs for Delay {