Skip to content

Commit 4f8cb8d

Browse files
committed
* ACK packets being 'clipped' (in Dispatcher send). Needed to extend max_airtime timeout calc for short packets
1 parent 5ff39c6 commit 4f8cb8d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/helpers/radiolib/CustomLR1110Wrapper.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ class CustomLR1110Wrapper : public RadioLibWrapper {
2626
return rssi;
2727
}
2828

29+
uint32_t getEstAirtimeFor(int len_bytes) override {
30+
auto airtime = RadioLibWrapper::getEstAirtimeFor(len_bytes);
31+
return airtime < 200 ? 200 : airtime; // at least 200 millis
32+
}
33+
2934
void onSendFinished() override {
3035
RadioLibWrapper::onSendFinished();
3136
_radio->setPreambleLength(preambleLengthForSF(getSpreadingFactor())); // overcomes weird issues with small and big pkts

0 commit comments

Comments
 (0)