aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2023-02-02 12:09:22 +0000
committerGitHub <[email protected]>2023-02-02 12:09:22 +0000
commit9af25c3396423036d0092a5f32f2d09b05a4e910 (patch)
treec36111377df402c3ae23b146232d4d131dc11db1
parent95cff35a9168171857affbdaa93ec45104afdb4f (diff)
parentef4a20f67b925ffcbf83642e33b13d3605b78d46 (diff)
Merge #1188
1188: LoRa timings for SX126x/STM32WL r=lulf a=samueltardieu 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. Co-authored-by: Samuel Tardieu <[email protected]>
-rw-r--r--embassy-lora/src/stm32wl/mod.rs4
-rw-r--r--embassy-lora/src/sx126x/mod.rs4
2 files changed, 4 insertions, 4 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
diff --git a/embassy-lora/src/sx126x/mod.rs b/embassy-lora/src/sx126x/mod.rs
index b14d422a7..a9aeadfcb 100644
--- a/embassy-lora/src/sx126x/mod.rs
+++ b/embassy-lora/src/sx126x/mod.rs
@@ -55,10 +55,10 @@ where
55 BUS: Error + Format + 'static, 55 BUS: Error + Format + 'static,
56{ 56{
57 fn get_rx_window_offset_ms(&self) -> i32 { 57 fn get_rx_window_offset_ms(&self) -> i32 {
58 -500 58 -3
59 } 59 }
60 fn get_rx_window_duration_ms(&self) -> u32 { 60 fn get_rx_window_duration_ms(&self) -> u32 {
61 800 61 1003
62 } 62 }
63} 63}
64 64