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
@@ -213,7 +213,7 @@ int main() {
|
||||
if (fault == 3) cli.fs.fail_rename = 1;
|
||||
const unsigned updates = mesh::debug_updates;
|
||||
cli.set("usb.debug on", reply);
|
||||
assert(strcmp(reply, "Error: USB debug not saved; unchanged") == 0);
|
||||
assert(strcmp(reply, "Error: save unconfirmed; reboot may differ") == 0);
|
||||
assert(cli.prefs.usb_debug_enabled == 0 && !mesh::isUsbDebugEnabled());
|
||||
assert(mesh::debug_updates == updates && !mesh::isUsbLoggingEnabled());
|
||||
assert(cli.fs.files["/com_prefs"] == debug_off);
|
||||
|
||||
Reference in new issue
Block a user