Re-compute correct timeslot on applyModemConfig (#4469)

* Re-compute correct timeslot on applyModemConfig

* Cap contention window max at 7
This commit is contained in:
Ben Meadors
2024-08-15 15:05:38 -05:00
committed by GitHub
parent ef56fae976
commit 6f1dae1b1b
2 changed files with 5 additions and 2 deletions

View File

@@ -520,6 +520,7 @@ void RadioInterface::applyModemConfig()
saveChannelNum(channel_num);
saveFreq(freq + loraConfig.frequency_offset);
slotTimeMsec = computeSlotTimeMsec(bw, sf);
preambleTimeMsec = getPacketTime((uint32_t)0);
maxPacketTimeMsec = getPacketTime(meshtastic_Constants_DATA_PAYLOAD_LEN + sizeof(PacketHeader));