fix: Fix-Runde 1 für Task 4 - Reset nur bei akzeptiertem OTA-Image, hängende Downloads/Sessions begrenzen
This commit is contained in:
+3
-1
@@ -165,7 +165,9 @@ static void app_task(void *arg)
|
||||
have_last = nl_state_log_load(&last);
|
||||
store_unlock();
|
||||
if (s_settings.ota_pending) {
|
||||
/* We came back from an update attempt: restore the light the user had on. */
|
||||
/* We came back from an update attempt (accepted or rejected). Just clear the flag so it
|
||||
* doesn't stick in flash forever; nl_boot_state() below restores the light from `last`/
|
||||
* power_on_behaviour as on any other boot, no special-casing needed here. */
|
||||
s_settings.ota_pending = 0;
|
||||
printf("boot after ota attempt\r\n");
|
||||
store_lock();
|
||||
|
||||
Reference in New Issue
Block a user