diff options
Diffstat (limited to 'examples/stm32wl/src')
| -rw-r--r-- | examples/stm32wl/src/bin/lorawan.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/stm32wl/src/bin/lorawan.rs b/examples/stm32wl/src/bin/lorawan.rs index 0ef13354d..83df0188a 100644 --- a/examples/stm32wl/src/bin/lorawan.rs +++ b/examples/stm32wl/src/bin/lorawan.rs | |||
| @@ -60,7 +60,9 @@ async fn main(_spawner: Spawner) { | |||
| 60 | let radio = SubGhz::new(p.SUBGHZSPI, NoDma, NoDma); | 60 | let radio = SubGhz::new(p.SUBGHZSPI, NoDma, NoDma); |
| 61 | let irq = interrupt::take!(SUBGHZ_RADIO); | 61 | let irq = interrupt::take!(SUBGHZ_RADIO); |
| 62 | 62 | ||
| 63 | let radio = SubGhzRadio::new(radio, rfs, irq); | 63 | let mut radio_config = SubGhzRadioConfig::default(); |
| 64 | radio_config.calibrate_image = CalibrateImage::ISM_863_870; | ||
| 65 | let radio = SubGhzRadio::new(radio, rfs, irq, radio_config).unwrap(); | ||
| 64 | 66 | ||
| 65 | let mut region: region::Configuration = region::EU868::default().into(); | 67 | let mut region: region::Configuration = region::EU868::default().into(); |
| 66 | 68 | ||
