diff options
Diffstat (limited to 'examples/rp/src/bin/lora_p2p_receive.rs')
| -rw-r--r-- | examples/rp/src/bin/lora_p2p_receive.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rp/src/bin/lora_p2p_receive.rs b/examples/rp/src/bin/lora_p2p_receive.rs index 5891826fd..d5843fdcd 100644 --- a/examples/rp/src/bin/lora_p2p_receive.rs +++ b/examples/rp/src/bin/lora_p2p_receive.rs | |||
| @@ -11,7 +11,7 @@ use embassy_executor::Spawner; | |||
| 11 | use embassy_lora::iv::GenericSx126xInterfaceVariant; | 11 | use embassy_lora::iv::GenericSx126xInterfaceVariant; |
| 12 | use embassy_rp::gpio::{Input, Level, Output, Pin, Pull}; | 12 | use embassy_rp::gpio::{Input, Level, Output, Pin, Pull}; |
| 13 | use embassy_rp::spi::{Config, Spi}; | 13 | use embassy_rp::spi::{Config, Spi}; |
| 14 | use embassy_time::{Delay, Duration, Timer}; | 14 | use embassy_time::{Delay, Timer}; |
| 15 | use lora_phy::mod_params::*; | 15 | use lora_phy::mod_params::*; |
| 16 | use lora_phy::sx1261_2::SX1261_2; | 16 | use lora_phy::sx1261_2::SX1261_2; |
| 17 | use lora_phy::LoRa; | 17 | use lora_phy::LoRa; |
| @@ -96,7 +96,7 @@ async fn main(_spawner: Spawner) { | |||
| 96 | { | 96 | { |
| 97 | info!("rx successful"); | 97 | info!("rx successful"); |
| 98 | debug_indicator.set_high(); | 98 | debug_indicator.set_high(); |
| 99 | Timer::after(Duration::from_secs(5)).await; | 99 | Timer::after_secs(5).await; |
| 100 | debug_indicator.set_low(); | 100 | debug_indicator.set_low(); |
| 101 | } else { | 101 | } else { |
| 102 | info!("rx unknown packet"); | 102 | info!("rx unknown packet"); |
