diff options
| author | Samuel Tardieu <[email protected]> | 2023-02-02 12:51:47 +0100 |
|---|---|---|
| committer | Samuel Tardieu <[email protected]> | 2023-02-02 13:01:18 +0100 |
| commit | c4cbb89fcd60375c4982a61fc3d9e5183f97d748 (patch) | |
| tree | 87b5c426fd4745fdd98cbbd3f7678cc8ece8a482 /embassy-lora/src | |
| parent | 95cff35a9168171857affbdaa93ec45104afdb4f (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.rs | 4 |
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 | ||
