Report uncertain preference saves without promising rollback
This commit is contained in:
1 parent
f6c00be3e0
commit
5fc0943f59
17 files changed
+807
-45
No files matched your search
@@ -92,7 +92,7 @@ bool handleCommand(uint8_t& shared, const char* command, char* reply,
|
||||
shared = strcmp(value, "shared") == 0 ? 1 : 0;
|
||||
if (!save()) {
|
||||
shared = previous;
|
||||
snprintf(reply, capacity, "Error: peripheral mode could not be saved");
|
||||
snprintf(reply, capacity, "Error: save unconfirmed; reboot may differ");
|
||||
} else {
|
||||
snprintf(reply, capacity, "OK - %s saved; reboot to apply", value);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user