[LoRaWAN] Fix missing us-to-ms divisor

pull/1275/head
StevenCellist 2024-10-14 12:29:42 +02:00
rodzic aecef28380
commit 3633391442
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1402,7 +1402,7 @@ int16_t LoRaWANNode::receiveCommon(uint8_t dir, const LoRaWANChannel_t* dlChanne
if(this->TS011) {
maxPayLen = RADIOLIB_MIN(maxPayLen, 230); // payload length is limited to 230 if under repeater
}
RadioLibTime_t tMax = this->phyLayer->getTimeOnAir(maxPayLen + 13); // mandatory FHDR is 12/13 bytes
RadioLibTime_t tMax = this->phyLayer->getTimeOnAir(maxPayLen + 13) / 1000; // mandatory FHDR is 12/13 bytes
bool downlinkComplete = true;
// wait for the DIO to fire indicating a downlink is received