[esp32_ble_tracker] Revert coexistence preference to balanced when OTA starts

This commit is contained in:
J. Nick Koston
2026-09-10 17:52:42 -05:00
parent 3e3822e554
commit 84b6f29f16
@@ -62,6 +62,10 @@ void ESP32BLETracker::on_ota_global_state(ota::OTAState state, float progress, u
for (auto *client : this->clients_) {
client->disconnect();
}
#endif
#ifdef USE_ESP32_BLE_SOFTWARE_COEXISTENCE
// The OTA transfer blocks the main loop, so the revert in loop() cannot run.
this->update_coex_preference_(false);
#endif
} else if ((state == ota::OTA_ERROR || state == ota::OTA_ABORT) && this->scan_continuous_before_ota_) {
this->scan_continuous_before_ota_ = false;