diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32l0/src/bin/lorawan.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32l0/src/bin/lorawan.rs b/examples/stm32l0/src/bin/lorawan.rs index 303558b96..00ff67f3f 100644 --- a/examples/stm32l0/src/bin/lorawan.rs +++ b/examples/stm32l0/src/bin/lorawan.rs | |||
| @@ -47,7 +47,7 @@ async fn main(_spawner: Spawner) { | |||
| 47 | let radio = Sx127xRadio::new(spi, cs, reset, ready_pin, DummySwitch).await.unwrap(); | 47 | let radio = Sx127xRadio::new(spi, cs, reset, ready_pin, DummySwitch).await.unwrap(); |
| 48 | 48 | ||
| 49 | let region = region::EU868::default().into(); | 49 | let region = region::EU868::default().into(); |
| 50 | let mut device: Device<_, Crypto, _, _> = Device::new(region, radio, LoraTimer, Rng::new(p.RNG)); | 50 | let mut device: Device<_, Crypto, _, _> = Device::new(region, radio, LoraTimer::new(), Rng::new(p.RNG)); |
| 51 | 51 | ||
| 52 | defmt::info!("Joining LoRaWAN network"); | 52 | defmt::info!("Joining LoRaWAN network"); |
| 53 | 53 | ||
