Compare commits
2 Commits
88a2a2bc71
...
63d71d021c
Author | SHA1 | Date |
---|---|---|
Astro | 63d71d021c | |
Astro | 3b4be6a414 |
|
@ -49,7 +49,7 @@ let
|
|||
name = "${crate}";
|
||||
src = ./.;
|
||||
crateSubdir = crate;
|
||||
cargoSha256 = "1fvild4mygcvnfcnmni4icg5nj16dj7hkzjpahzhpbyv9rr24722";
|
||||
cargoSha256 = "02k72zj6qfbw9y69w3r9a1b1dg9pvkc7cl511hcv4w9rbnn3jlld";
|
||||
cargoFeatures = features;
|
||||
doCheck = false;
|
||||
};
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
use embedded_hal::timer::CountDown;
|
||||
use crate::block_async;
|
||||
|
||||
pub async fn delay<T: CountDown<Time=C>, C>(timer: &mut T, count: C) {
|
||||
timer.start(count);
|
||||
let _ = block_async!(timer.wait()).await;
|
||||
}
|
Loading…
Reference in New Issue