Merge pull request #2593 from MabezDev/cloneable-delay
time: cloneable delay
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user