diff options
| author | Timo Kröger <[email protected]> | 2022-08-26 15:37:20 +0200 |
|---|---|---|
| committer | Timo Kröger <[email protected]> | 2022-08-26 15:44:58 +0200 |
| commit | 47069dfbe18df268966bc3526f515dc944d43021 (patch) | |
| tree | 53ef424607b535d1f71db2bb8637ceb8e48d371b /examples | |
| parent | c30b38586a7663ad4c4654739364e36139c7217e (diff) | |
lora: Fix for stm32l0 exampe to build
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 | ||
