Add size-safe stable MOTA bridge mode

This commit is contained in:
mikecarper committed 2026-07-31 01:01:14 -07:00
1 parent a57e2848a6
commit 8ba658db92
6 files changed
+14 -12

No files matched your search

+1 -1
View File
@@ -354,7 +354,7 @@ bool SensorMesh::allowPacketForward(const mesh::Packet* packet) {
int SensorMesh::calcRxDelay(float score, uint32_t air_time) const {
if (_prefs.rx_delay_base <= 0.0f) return 0;
return (int) ((pow(_prefs.rx_delay_base, 0.85f - score) - 1.0) * air_time);
return (int) ((powf(_prefs.rx_delay_base, 0.85f - score) - 1.0f) * air_time);
}
uint32_t SensorMesh::getRetransmitDelay(const mesh::Packet* packet) {