diff options
| author | Ulf Lilleengen <[email protected]> | 2022-09-28 11:32:11 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2022-09-28 11:32:11 +0200 |
| commit | d7f7614b225da41477972b5fd287d10e6069846c (patch) | |
| tree | a78b214a7ab5c8f03b5b177a203fd7bb414dd160 /embassy-lora | |
| parent | 5c882cf4faffe68dd376b90b6ce7504fd5d259c5 (diff) | |
Remove subghz static lifetime requirement
Diffstat (limited to 'embassy-lora')
| -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 | } |
