Use LP as default

This commit is contained in:
Ulf Lilleengen 2022-08-09 12:18:39 +02:00 committed by Timo Kröger
parent 5d114479ff
commit 6dab322c58

View File

@ -37,7 +37,7 @@ impl<'a> embassy_lora::stm32wl::RadioSwitch for RadioSwitch<'a> {
} }
fn set_tx(&mut self) { fn set_tx(&mut self) {
self.ctrl1.set_low(); self.ctrl1.set_high();
self.ctrl2.set_high(); self.ctrl2.set_high();
self.ctrl3.set_high(); self.ctrl3.set_high();
} }
@ -69,7 +69,7 @@ async fn main(_spawner: Spawner) {
// NOTE: This is specific for TTN, as they have a special RX1 delay // NOTE: This is specific for TTN, as they have a special RX1 delay
region.set_receive_delay1(5000); region.set_receive_delay1(5000);
let mut device: Device<_, Crypto, _, _> = Device::new(region, radio, LoraTimer, Rng::new(p.RNG)); let mut device: Device<_, Crypto, _, _> = Device::new(region, radio, LoraTimer::new(), Rng::new(p.RNG));
// Depending on network, this might be part of JOIN // Depending on network, this might be part of JOIN
device.set_datarate(region::DR::_0); // SF12 device.set_datarate(region::DR::_0); // SF12