aboutsummaryrefslogtreecommitdiff
path: root/embassy-lora
diff options
context:
space:
mode:
authorChuck Davis <[email protected]>2022-09-28 14:33:03 -0500
committerGitHub <[email protected]>2022-09-28 14:33:03 -0500
commitbb84d7a0aeee967a2facdfb0590b03493b703e9f (patch)
treebf9dd9dfd6bec1109b9e87ae7fbb841c234b58b0 /embassy-lora
parent526e90d3f3b986fedc55ec421178b7b2ec954abf (diff)
parent77ece3f903735b50f265ddd43520c50e0f28c1a1 (diff)
Merge branch 'embassy-rs:master' into master
Diffstat (limited to 'embassy-lora')
-rw-r--r--embassy-lora/src/stm32wl/mod.rs6
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
237impl<RS: RadioSwitch> PhyRxTx for SubGhzRadio<'static, RS> { 237impl<'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 }