Report unverified USB watchdog saves without promising rollback
This commit is contained in:
1 parent
5fc0943f59
commit
de0e18e8cc
3 files changed
+97
-34
No files matched your search
@@ -387,7 +387,7 @@ bool handleUsbLoggingWatchdogCommand(const char* command, char* reply,
|
||||
Config candidate = config;
|
||||
candidate.mode = mode;
|
||||
if (!saveConfig(candidate, true)) {
|
||||
snprintf(reply, capacity, "Error: USB watchdog state not durable; unchanged");
|
||||
snprintf(reply, capacity, "Error: save unconfirmed; reboot may differ");
|
||||
} else {
|
||||
config = candidate;
|
||||
if (config.last_event.sequence) config.last_event.persisted = true;
|
||||
|
||||
Reference in new issue
Block a user