Complete ESP32 partition expander and adaptive LoRa OTA pacing

This commit is contained in:
mikecarper committed 2026-09-24 17:13:22 -07:00
1 parent e370db7f28
commit a74a09da56
33 files changed
+986 -66

No files matched your search

+10
View File
@@ -663,6 +663,16 @@ float Mesh::getOtaSpeedFactor() const {
#endif
}
float Mesh::getOtaPacketSpeedFactor() const {
const float configured = getOtaSpeedFactor();
#if defined(ENABLE_OTA)
const float adaptive = ota::ota_ctx().manager.adaptivePacketSpeed();
return configured < adaptive ? configured : adaptive;
#else
return configured;
#endif
}
uint32_t Mesh::getOtaPacketAirtime() const {
const auto* profiles = _radio->profiles();
if (!profiles || !profiles->enabled()) return _radio->getProfileAirtime(0, MAX_TRANS_UNIT);