diff options
| author | Timo Kröger <[email protected]> | 2022-09-03 20:36:18 +0200 |
|---|---|---|
| committer | Timo Kröger <[email protected]> | 2022-09-03 20:36:18 +0200 |
| commit | 6cdff72d6d2becb3f8a4659571fd5e6a339cbefa (patch) | |
| tree | 49b8214abf9ea3b3df9021c667a42434b887e75e /embassy-lora | |
| parent | 47069dfbe18df268966bc3526f515dc944d43021 (diff) | |
run `cargo fmt`
Diffstat (limited to 'embassy-lora')
| -rw-r--r-- | embassy-lora/src/stm32wl/mod.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/embassy-lora/src/stm32wl/mod.rs b/embassy-lora/src/stm32wl/mod.rs index 9307cdebb..4d11244b6 100644 --- a/embassy-lora/src/stm32wl/mod.rs +++ b/embassy-lora/src/stm32wl/mod.rs | |||
| @@ -7,8 +7,8 @@ use embassy_stm32::dma::NoDma; | |||
| 7 | use embassy_stm32::interrupt::{Interrupt, InterruptExt, SUBGHZ_RADIO}; | 7 | use embassy_stm32::interrupt::{Interrupt, InterruptExt, SUBGHZ_RADIO}; |
| 8 | use embassy_stm32::subghz::{ | 8 | use embassy_stm32::subghz::{ |
| 9 | CalibrateImage, CfgIrq, CodingRate, Error, HeaderType, HseTrim, Irq, LoRaBandwidth, LoRaModParams, | 9 | CalibrateImage, CfgIrq, CodingRate, Error, HeaderType, HseTrim, Irq, LoRaBandwidth, LoRaModParams, |
| 10 | LoRaPacketParams, LoRaSyncWord, Ocp, PaConfig, PacketType, RegMode, RfFreq, SpreadingFactor as SF, | 10 | LoRaPacketParams, LoRaSyncWord, Ocp, PaConfig, PacketType, RegMode, RfFreq, SpreadingFactor as SF, StandbyClk, |
| 11 | StandbyClk, Status, SubGhz, TcxoMode, TcxoTrim, Timeout, TxParams, | 11 | Status, SubGhz, TcxoMode, TcxoTrim, Timeout, TxParams, |
| 12 | }; | 12 | }; |
| 13 | use embassy_sync::waitqueue::AtomicWaker; | 13 | use embassy_sync::waitqueue::AtomicWaker; |
| 14 | use futures::future::poll_fn; | 14 | use futures::future::poll_fn; |
| @@ -158,8 +158,7 @@ impl<'d, RS: RadioSwitch> SubGhzRadio<'d, RS> { | |||
| 158 | self.radio.set_buffer_base_address(0, 0)?; | 158 | self.radio.set_buffer_base_address(0, 0)?; |
| 159 | 159 | ||
| 160 | // NOTE: Upper layer handles timeout by cancelling the future | 160 | // NOTE: Upper layer handles timeout by cancelling the future |
| 161 | self.radio | 161 | self.radio.set_rx(Timeout::DISABLED)?; |
| 162 | .set_rx(Timeout::DISABLED)?; | ||
| 163 | 162 | ||
| 164 | trace!("RX started"); | 163 | trace!("RX started"); |
| 165 | 164 | ||
