diff options
Diffstat (limited to 'embassy-embedded-hal')
| -rw-r--r-- | embassy-embedded-hal/Cargo.toml | 1 | ||||
| -rw-r--r-- | embassy-embedded-hal/src/adapter/yielding_async.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/embassy-embedded-hal/Cargo.toml b/embassy-embedded-hal/Cargo.toml index a66e01717..8b8122567 100644 --- a/embassy-embedded-hal/Cargo.toml +++ b/embassy-embedded-hal/Cargo.toml | |||
| @@ -25,6 +25,7 @@ src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-embed | |||
| 25 | target = "x86_64-unknown-linux-gnu" | 25 | target = "x86_64-unknown-linux-gnu" |
| 26 | 26 | ||
| 27 | [features] | 27 | [features] |
| 28 | defmt = ["dep:defmt"] | ||
| 28 | time = ["dep:embassy-time"] | 29 | time = ["dep:embassy-time"] |
| 29 | 30 | ||
| 30 | [dependencies] | 31 | [dependencies] |
diff --git a/embassy-embedded-hal/src/adapter/yielding_async.rs b/embassy-embedded-hal/src/adapter/yielding_async.rs index 87f822a63..e0ca3aedc 100644 --- a/embassy-embedded-hal/src/adapter/yielding_async.rs +++ b/embassy-embedded-hal/src/adapter/yielding_async.rs | |||
| @@ -2,7 +2,7 @@ use embassy_futures::yield_now; | |||
| 2 | 2 | ||
| 3 | /// Wrapper that yields for each operation to the wrapped instance | 3 | /// Wrapper that yields for each operation to the wrapped instance |
| 4 | /// | 4 | /// |
| 5 | /// This can be used in combination with BlockingAsync<T> to enforce yields | 5 | /// This can be used in combination with [super::BlockingAsync] to enforce yields |
| 6 | /// between long running blocking operations. | 6 | /// between long running blocking operations. |
| 7 | pub struct YieldingAsync<T> { | 7 | pub struct YieldingAsync<T> { |
| 8 | wrapped: T, | 8 | wrapped: T, |
