diff options
Diffstat (limited to 'embassy-lora')
| -rw-r--r-- | embassy-lora/src/stm32wl/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-lora/src/stm32wl/mod.rs b/embassy-lora/src/stm32wl/mod.rs index 8d5d19531..08bf32f99 100644 --- a/embassy-lora/src/stm32wl/mod.rs +++ b/embassy-lora/src/stm32wl/mod.rs | |||
| @@ -70,7 +70,7 @@ impl<'d, RS: RadioSwitch> SubGhzRadio<'d, RS> { | |||
| 70 | /// Perform a transmission with the given parameters and payload. Returns any time adjustements needed form | 70 | /// Perform a transmission with the given parameters and payload. Returns any time adjustements needed form |
| 71 | /// the upcoming RX window start. | 71 | /// the upcoming RX window start. |
| 72 | async fn do_tx(&mut self, config: TxConfig, buf: &[u8]) -> Result<u32, RadioError> { | 72 | async fn do_tx(&mut self, config: TxConfig, buf: &[u8]) -> Result<u32, RadioError> { |
| 73 | trace!("TX request: {}", config); | 73 | trace!("TX request: {:?}", config); |
| 74 | self.switch.set_tx(); | 74 | self.switch.set_tx(); |
| 75 | 75 | ||
| 76 | self.radio | 76 | self.radio |
| @@ -130,7 +130,7 @@ impl<'d, RS: RadioSwitch> SubGhzRadio<'d, RS> { | |||
| 130 | /// be able to hold a single LoRaWAN packet. | 130 | /// be able to hold a single LoRaWAN packet. |
| 131 | async fn do_rx(&mut self, config: RfConfig, buf: &mut [u8]) -> Result<(usize, RxQuality), RadioError> { | 131 | async fn do_rx(&mut self, config: RfConfig, buf: &mut [u8]) -> Result<(usize, RxQuality), RadioError> { |
| 132 | assert!(buf.len() >= 255); | 132 | assert!(buf.len() >= 255); |
| 133 | trace!("RX request: {}", config); | 133 | trace!("RX request: {:?}", config); |
| 134 | self.switch.set_rx(); | 134 | self.switch.set_rx(); |
| 135 | 135 | ||
| 136 | self.radio.set_rf_frequency(&RfFreq::from_frequency(config.frequency))?; | 136 | self.radio.set_rf_frequency(&RfFreq::from_frequency(config.frequency))?; |
| @@ -172,7 +172,7 @@ impl<'d, RS: RadioSwitch> SubGhzRadio<'d, RS> { | |||
| 172 | self.radio.read_buffer(ptr, &mut buf[..len as usize])?; | 172 | self.radio.read_buffer(ptr, &mut buf[..len as usize])?; |
| 173 | self.radio.set_standby(StandbyClk::Rc)?; | 173 | self.radio.set_standby(StandbyClk::Rc)?; |
| 174 | 174 | ||
| 175 | trace!("RX done: {=[u8]:#02X}", &mut buf[..len as usize]); | 175 | trace!("RX done: {:02x?}", &mut buf[..len as usize]); |
| 176 | return Ok((len as usize, RxQuality::new(rssi, snr as i8))); | 176 | return Ok((len as usize, RxQuality::new(rssi, snr as i8))); |
| 177 | } | 177 | } |
| 178 | 178 | ||
| @@ -193,7 +193,7 @@ impl<'d, RS: RadioSwitch> SubGhzRadio<'d, RS> { | |||
| 193 | .clear_irq_status(irq_status) | 193 | .clear_irq_status(irq_status) |
| 194 | .expect("error clearing irq status"); | 194 | .expect("error clearing irq status"); |
| 195 | 195 | ||
| 196 | trace!("SUGHZ IRQ 0b{=u16:b}, {:?}", irq_status, status); | 196 | trace!("SUGHZ IRQ 0b{:016b}, {:?}", irq_status, status); |
| 197 | 197 | ||
| 198 | if irq_status == 0 { | 198 | if irq_status == 0 { |
| 199 | Poll::Pending | 199 | Poll::Pending |
