[SX128x] Add explanation regarding 10x timeout value

pull/1592/head
jgromes 2025-09-08 20:50:14 +02:00
rodzic c70ab67044
commit 0c06b337b8
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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;