From 0c06b337b8efc4850365460ae2857ae350f331e5 Mon Sep 17 00:00:00 2001 From: jgromes Date: Mon, 8 Sep 2025 20:50:14 +0200 Subject: [PATCH] [SX128x] Add explanation regarding 10x timeout value --- src/modules/SX128x/SX128x.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/SX128x/SX128x.cpp b/src/modules/SX128x/SX128x.cpp index 25b0111b..89e16332 100644 --- a/src/modules/SX128x/SX128x.cpp +++ b/src/modules/SX128x/SX128x.cpp @@ -362,6 +362,8 @@ int16_t SX128x::receive(uint8_t* data, size_t len, RadioLibTime_t timeout) { RADIOLIB_ASSERT(state); // calculate timeout (1000% of expected time-on-air) + // for most other modules, it is 500%, however, the overall datarates of SX128x are higher + // so we use higher value for the default timeout RadioLibTime_t timeoutInternal = timeout; if(!timeoutInternal) { timeoutInternal = getTimeOnAir(len) * 10;