Unify full firmware profiles and add dual USB logging
This commit is contained in:
1 parent
b699e552ec
commit
f2d4ffbb7e
56 files changed
+1652
-361
No files matched your search
@@ -349,6 +349,10 @@ void DataStore::loadPrefsInt(const char *filename, CompanionNodePrefs& _prefs, d
|
||||
if (file.available() >= (int)sizeof(_prefs.powersaving_policy_version)) {
|
||||
file.read((uint8_t *)&_prefs.powersaving_policy_version,
|
||||
sizeof(_prefs.powersaving_policy_version)); // 139
|
||||
if (file.available() >= (int)sizeof(_prefs.usb_logging_enabled)) {
|
||||
file.read((uint8_t *)&_prefs.usb_logging_enabled,
|
||||
sizeof(_prefs.usb_logging_enabled)); // 140
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -421,6 +425,9 @@ bool DataStore::savePrefs(const CompanionNodePrefs& _prefs, double node_lat, dou
|
||||
success = success && file.write((uint8_t *)&_prefs.powersaving_policy_version,
|
||||
sizeof(_prefs.powersaving_policy_version))
|
||||
== sizeof(_prefs.powersaving_policy_version); // 139
|
||||
success = success && file.write((uint8_t *)&_prefs.usb_logging_enabled,
|
||||
sizeof(_prefs.usb_logging_enabled))
|
||||
== sizeof(_prefs.usb_logging_enabled); // 140
|
||||
|
||||
#if defined(NRF52_PLATFORM)
|
||||
success = file.commit(success);
|
||||
|
||||
Reference in new issue
Block a user