diff options
| author | Ulf Lilleengen <[email protected]> | 2022-08-09 12:18:39 +0200 |
|---|---|---|
| committer | Timo Kröger <[email protected]> | 2022-08-26 15:44:58 +0200 |
| commit | 6dab322c5819f89b41977bf4bad66bb8445af5f9 (patch) | |
| tree | 989724e753c8233d8795a2913129458fbcf6b3c7 /examples/stm32wl/src | |
| parent | 5d114479ff1b123441725ff202744f80387dc731 (diff) | |
Use LP as default
Diffstat (limited to 'examples/stm32wl/src')
| -rw-r--r-- | examples/stm32wl/src/bin/lorawan.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32wl/src/bin/lorawan.rs b/examples/stm32wl/src/bin/lorawan.rs index 83df0188a..9143e64da 100644 --- a/examples/stm32wl/src/bin/lorawan.rs +++ b/examples/stm32wl/src/bin/lorawan.rs | |||
| @@ -37,7 +37,7 @@ impl<'a> embassy_lora::stm32wl::RadioSwitch for RadioSwitch<'a> { | |||
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | fn set_tx(&mut self) { | 39 | fn set_tx(&mut self) { |
| 40 | self.ctrl1.set_low(); | 40 | self.ctrl1.set_high(); |
| 41 | self.ctrl2.set_high(); | 41 | self.ctrl2.set_high(); |
| 42 | self.ctrl3.set_high(); | 42 | self.ctrl3.set_high(); |
| 43 | } | 43 | } |
| @@ -69,7 +69,7 @@ async fn main(_spawner: Spawner) { | |||
| 69 | // NOTE: This is specific for TTN, as they have a special RX1 delay | 69 | // NOTE: This is specific for TTN, as they have a special RX1 delay |
| 70 | region.set_receive_delay1(5000); | 70 | region.set_receive_delay1(5000); |
| 71 | 71 | ||
| 72 | let mut device: Device<_, Crypto, _, _> = Device::new(region, radio, LoraTimer, Rng::new(p.RNG)); | 72 | let mut device: Device<_, Crypto, _, _> = Device::new(region, radio, LoraTimer::new(), Rng::new(p.RNG)); |
| 73 | 73 | ||
| 74 | // Depending on network, this might be part of JOIN | 74 | // Depending on network, this might be part of JOIN |
| 75 | device.set_datarate(region::DR::_0); // SF12 | 75 | device.set_datarate(region::DR::_0); // SF12 |
