aboutsummaryrefslogtreecommitdiff
path: root/embassy-lora/src
diff options
context:
space:
mode:
authorSamuel Tardieu <[email protected]>2023-02-02 12:51:47 +0100
committerSamuel Tardieu <[email protected]>2023-02-02 13:01:18 +0100
commitc4cbb89fcd60375c4982a61fc3d9e5183f97d748 (patch)
tree87b5c426fd4745fdd98cbbd3f7678cc8ece8a482 /embassy-lora/src
parent95cff35a9168171857affbdaa93ec45104afdb4f (diff)
LoRa/SX126x: 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/src')
-rw-r--r--embassy-lora/src/sx126x/mod.rs4
1 files changed, 2 insertions, 2 deletions
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