diff options
Diffstat (limited to 'examples/stm32l0/src/bin/lora_cad.rs')
| -rw-r--r-- | examples/stm32l0/src/bin/lora_cad.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/stm32l0/src/bin/lora_cad.rs b/examples/stm32l0/src/bin/lora_cad.rs index 900848fd8..987cdba01 100644 --- a/examples/stm32l0/src/bin/lora_cad.rs +++ b/examples/stm32l0/src/bin/lora_cad.rs | |||
| @@ -12,7 +12,7 @@ use embassy_stm32::exti::{Channel, ExtiInput}; | |||
| 12 | use embassy_stm32::gpio::{Input, Level, Output, Pin, Pull, Speed}; | 12 | use embassy_stm32::gpio::{Input, Level, Output, Pin, Pull, Speed}; |
| 13 | use embassy_stm32::spi; | 13 | use embassy_stm32::spi; |
| 14 | use embassy_stm32::time::khz; | 14 | use embassy_stm32::time::khz; |
| 15 | use embassy_time::{Delay, Duration, Timer}; | 15 | use embassy_time::{Delay, Timer}; |
| 16 | use lora_phy::mod_params::*; | 16 | use lora_phy::mod_params::*; |
| 17 | use lora_phy::sx1276_7_8_9::SX1276_7_8_9; | 17 | use lora_phy::sx1276_7_8_9::SX1276_7_8_9; |
| 18 | use lora_phy::LoRa; | 18 | use lora_phy::LoRa; |
| @@ -55,7 +55,7 @@ async fn main(_spawner: Spawner) { | |||
| 55 | let mut start_indicator = Output::new(p.PB6, Level::Low, Speed::Low); | 55 | let mut start_indicator = Output::new(p.PB6, Level::Low, Speed::Low); |
| 56 | 56 | ||
| 57 | start_indicator.set_high(); | 57 | start_indicator.set_high(); |
| 58 | Timer::after(Duration::from_secs(5)).await; | 58 | Timer::after_secs(5).await; |
| 59 | start_indicator.set_low(); | 59 | start_indicator.set_low(); |
| 60 | 60 | ||
| 61 | let mdltn_params = { | 61 | let mdltn_params = { |
| @@ -89,7 +89,7 @@ async fn main(_spawner: Spawner) { | |||
| 89 | info!("cad successful without activity detected") | 89 | info!("cad successful without activity detected") |
| 90 | } | 90 | } |
| 91 | debug_indicator.set_high(); | 91 | debug_indicator.set_high(); |
| 92 | Timer::after(Duration::from_secs(5)).await; | 92 | Timer::after_secs(5).await; |
| 93 | debug_indicator.set_low(); | 93 | debug_indicator.set_low(); |
| 94 | } | 94 | } |
| 95 | Err(err) => info!("cad unsuccessful = {}", err), | 95 | Err(err) => info!("cad unsuccessful = {}", err), |
