Commit a8d7330
committed
Fix airtime estimate: use SF-dependent preamble length
estimateLoRaAirtimeFor() hardcoded a 16-symbol preamble, but MeshCore
sets the preamble per-SF via RadioLibWrapper::preambleLengthForSF (32
symbols for SF<=8, 16 otherwise). On the default SF8/BW62.5 this made
the estimate ~65ms low versus the radio's real getTimeOnAir(), skewing
retransmit jitter and tightening the TX-expiry watchdog. Use the same
SF<=8 ? 32 : 16 rule so the estimate matches the radio for default CR
and only diverges when CR is actually overridden.1 parent 45af602 commit a8d7330
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| |||
0 commit comments