aboutsummaryrefslogtreecommitdiff
path: root/embassy-lora
diff options
context:
space:
mode:
authorSamuel Tardieu <[email protected]>2023-02-02 12:52:00 +0100
committerSamuel Tardieu <[email protected]>2023-02-02 13:01:18 +0100
commitef4a20f67b925ffcbf83642e33b13d3605b78d46 (patch)
treec36111377df402c3ae23b146232d4d131dc11db1 /embassy-lora
parentc4cbb89fcd60375c4982a61fc3d9e5183f97d748 (diff)
LoRa/STM32WL: adjust Rx window offset and duration
Those timings open Rx time windows covering 99.7% of the one expected by the antenna while allowing 3ms for the Rx subsystem to start listening.
Diffstat (limited to 'embassy-lora')
-rw-r--r--embassy-lora/src/stm32wl/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-lora/src/stm32wl/mod.rs b/embassy-lora/src/stm32wl/mod.rs
index 6ed63bf7b..3d52c1cc7 100644
--- a/embassy-lora/src/stm32wl/mod.rs
+++ b/embassy-lora/src/stm32wl/mod.rs
@@ -260,10 +260,10 @@ impl From<embassy_stm32::spi::Error> for RadioError {
260 260
261impl<'d, RS> Timings for SubGhzRadio<'d, RS> { 261impl<'d, RS> Timings for SubGhzRadio<'d, RS> {
262 fn get_rx_window_offset_ms(&self) -> i32 { 262 fn get_rx_window_offset_ms(&self) -> i32 {
263 -500 263 -3
264 } 264 }
265 fn get_rx_window_duration_ms(&self) -> u32 { 265 fn get_rx_window_duration_ms(&self) -> u32 {
266 3000 266 1003
267 } 267 }
268} 268}
269 269