fix(ota): flash the channel ota update checked, not a later ota branch

The deferred flash re-read the channel preference ~2.5 s after ota update
acknowledged its target; capture it when the update is scheduled.
This commit is contained in:
agessaman committed 2026-10-03 15:37:49 -07:00
1 parent a1943a8eac
commit f652e7d185
4 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -1617,7 +1617,7 @@ void MyMesh::loop() {
}
char ota_reply[160];
if (may_flash && !_cli.getBoard()->otaFromManifest(ota_resolve_base(_prefs.ota_channel), getFirmwareVer(), false, ota_reply)) {
if (may_flash && !_cli.getBoard()->otaFromManifest(ota_resolve_base(_ota_update_channel), getFirmwareVer(), false, ota_reply)) {
Serial.print("OTA: aborted - "); Serial.println(ota_reply);
may_flash = false;
}