diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-06-09 01:40:45 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-09 01:40:45 +0000 |
| commit | 479ccf17df01e9ec6095bb228b198b628697987c (patch) | |
| tree | 1a0e328f15e39087f43455b563cb3898ecb9bc6b | |
| parent | c0331cdf8927c0416622088e1f29d458c5e3819a (diff) | |
| parent | d46b2b49c7941afed6578556dd2d6d98d072cbbb (diff) | |
Merge pull request #1545 from embassy-rs/fixes4
Dumb fixes.
| -rw-r--r-- | cyw43/src/control.rs | 5 | ||||
| -rw-r--r-- | cyw43/src/fmt.rs | 3 | ||||
| -rw-r--r-- | embassy-cortex-m/src/fmt.rs | 3 | ||||
| -rw-r--r-- | embassy-futures/src/fmt.rs | 3 | ||||
| -rw-r--r-- | embassy-sync/src/fmt.rs | 3 |
5 files changed, 1 insertions, 16 deletions
diff --git a/cyw43/src/control.rs b/cyw43/src/control.rs index 6919d569e..c67614dd6 100644 --- a/cyw43/src/control.rs +++ b/cyw43/src/control.rs | |||
| @@ -381,10 +381,7 @@ impl<'a> Control<'a> { | |||
| 381 | } | 381 | } |
| 382 | 382 | ||
| 383 | let ioctl = CancelOnDrop(self.ioctl_state); | 383 | let ioctl = CancelOnDrop(self.ioctl_state); |
| 384 | 384 | let resp_len = ioctl.0.do_ioctl(kind, cmd, iface, buf).await; | |
| 385 | ioctl.0.do_ioctl(kind, cmd, iface, buf).await; | ||
| 386 | let resp_len = ioctl.0.wait_complete().await; | ||
| 387 | |||
| 388 | ioctl.defuse(); | 385 | ioctl.defuse(); |
| 389 | 386 | ||
| 390 | resp_len | 387 | resp_len |
diff --git a/cyw43/src/fmt.rs b/cyw43/src/fmt.rs index 5730447b3..9534c101c 100644 --- a/cyw43/src/fmt.rs +++ b/cyw43/src/fmt.rs | |||
| @@ -197,9 +197,6 @@ macro_rules! unwrap { | |||
| 197 | } | 197 | } |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | #[cfg(feature = "defmt-timestamp-uptime")] | ||
| 201 | defmt::timestamp! {"{=u64:us}", crate::time::Instant::now().as_micros() } | ||
| 202 | |||
| 203 | #[derive(Debug, Copy, Clone, Eq, PartialEq)] | 200 | #[derive(Debug, Copy, Clone, Eq, PartialEq)] |
| 204 | pub struct NoneError; | 201 | pub struct NoneError; |
| 205 | 202 | ||
diff --git a/embassy-cortex-m/src/fmt.rs b/embassy-cortex-m/src/fmt.rs index f8bb0a035..066970813 100644 --- a/embassy-cortex-m/src/fmt.rs +++ b/embassy-cortex-m/src/fmt.rs | |||
| @@ -195,9 +195,6 @@ macro_rules! unwrap { | |||
| 195 | } | 195 | } |
| 196 | } | 196 | } |
| 197 | 197 | ||
| 198 | #[cfg(feature = "defmt-timestamp-uptime")] | ||
| 199 | defmt::timestamp! {"{=u64:us}", crate::time::Instant::now().as_micros() } | ||
| 200 | |||
| 201 | #[derive(Debug, Copy, Clone, Eq, PartialEq)] | 198 | #[derive(Debug, Copy, Clone, Eq, PartialEq)] |
| 202 | pub struct NoneError; | 199 | pub struct NoneError; |
| 203 | 200 | ||
diff --git a/embassy-futures/src/fmt.rs b/embassy-futures/src/fmt.rs index f8bb0a035..066970813 100644 --- a/embassy-futures/src/fmt.rs +++ b/embassy-futures/src/fmt.rs | |||
| @@ -195,9 +195,6 @@ macro_rules! unwrap { | |||
| 195 | } | 195 | } |
| 196 | } | 196 | } |
| 197 | 197 | ||
| 198 | #[cfg(feature = "defmt-timestamp-uptime")] | ||
| 199 | defmt::timestamp! {"{=u64:us}", crate::time::Instant::now().as_micros() } | ||
| 200 | |||
| 201 | #[derive(Debug, Copy, Clone, Eq, PartialEq)] | 198 | #[derive(Debug, Copy, Clone, Eq, PartialEq)] |
| 202 | pub struct NoneError; | 199 | pub struct NoneError; |
| 203 | 200 | ||
diff --git a/embassy-sync/src/fmt.rs b/embassy-sync/src/fmt.rs index f8bb0a035..066970813 100644 --- a/embassy-sync/src/fmt.rs +++ b/embassy-sync/src/fmt.rs | |||
| @@ -195,9 +195,6 @@ macro_rules! unwrap { | |||
| 195 | } | 195 | } |
| 196 | } | 196 | } |
| 197 | 197 | ||
| 198 | #[cfg(feature = "defmt-timestamp-uptime")] | ||
| 199 | defmt::timestamp! {"{=u64:us}", crate::time::Instant::now().as_micros() } | ||
| 200 | |||
| 201 | #[derive(Debug, Copy, Clone, Eq, PartialEq)] | 198 | #[derive(Debug, Copy, Clone, Eq, PartialEq)] |
| 202 | pub struct NoneError; | 199 | pub struct NoneError; |
| 203 | 200 | ||
