diff options
| author | Chuck Davis <[email protected]> | 2022-09-28 14:33:03 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-28 14:33:03 -0500 |
| commit | bb84d7a0aeee967a2facdfb0590b03493b703e9f (patch) | |
| tree | bf9dd9dfd6bec1109b9e87ae7fbb841c234b58b0 | |
| parent | 526e90d3f3b986fedc55ec421178b7b2ec954abf (diff) | |
| parent | 77ece3f903735b50f265ddd43520c50e0f28c1a1 (diff) | |
Merge branch 'embassy-rs:master' into master
| -rw-r--r-- | embassy-lora/src/stm32wl/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-lora/src/stm32wl/mod.rs b/embassy-lora/src/stm32wl/mod.rs index e28fa2c1a..8d5d19531 100644 --- a/embassy-lora/src/stm32wl/mod.rs +++ b/embassy-lora/src/stm32wl/mod.rs | |||
| @@ -234,15 +234,15 @@ fn configure_radio(radio: &mut SubGhz<'_, NoDma, NoDma>, config: SubGhzRadioConf | |||
| 234 | Ok(()) | 234 | Ok(()) |
| 235 | } | 235 | } |
| 236 | 236 | ||
| 237 | impl<RS: RadioSwitch> PhyRxTx for SubGhzRadio<'static, RS> { | 237 | impl<'d, RS: RadioSwitch> PhyRxTx for SubGhzRadio<'d, RS> { |
| 238 | type PhyError = RadioError; | 238 | type PhyError = RadioError; |
| 239 | 239 | ||
| 240 | type TxFuture<'m> = impl Future<Output = Result<u32, Self::PhyError>> + 'm where RS: 'm; | 240 | type TxFuture<'m> = impl Future<Output = Result<u32, Self::PhyError>> + 'm where Self: 'm; |
| 241 | fn tx<'m>(&'m mut self, config: TxConfig, buf: &'m [u8]) -> Self::TxFuture<'m> { | 241 | fn tx<'m>(&'m mut self, config: TxConfig, buf: &'m [u8]) -> Self::TxFuture<'m> { |
| 242 | async move { self.do_tx(config, buf).await } | 242 | async move { self.do_tx(config, buf).await } |
| 243 | } | 243 | } |
| 244 | 244 | ||
| 245 | type RxFuture<'m> = impl Future<Output = Result<(usize, RxQuality), Self::PhyError>> + 'm where RS: 'm; | 245 | type RxFuture<'m> = impl Future<Output = Result<(usize, RxQuality), Self::PhyError>> + 'm where Self: 'm; |
| 246 | fn rx<'m>(&'m mut self, config: RfConfig, buf: &'m mut [u8]) -> Self::RxFuture<'m> { | 246 | fn rx<'m>(&'m mut self, config: RfConfig, buf: &'m mut [u8]) -> Self::RxFuture<'m> { |
| 247 | async move { self.do_rx(config, buf).await } | 247 | async move { self.do_rx(config, buf).await } |
| 248 | } | 248 | } |
