mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 14:12:16 +03:00
405
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -10,6 +10,7 @@
|
||||
struct updateFirm {
|
||||
String settingsFlashJson;
|
||||
String configJson;
|
||||
String layoutJson;
|
||||
};
|
||||
|
||||
extern void upgradeInit();
|
||||
|
||||
@@ -110,9 +110,11 @@ const String getBinPath(String file) {
|
||||
void putUserDataToRam() {
|
||||
update.configJson = readFile("config.json", 4096);
|
||||
update.settingsFlashJson = readFile("settings.json", 4096);
|
||||
update.layoutJson = readFile("layout.json", 4096);
|
||||
}
|
||||
|
||||
void saveUserDataToFlash() {
|
||||
writeFile("/config.json", update.configJson);
|
||||
writeFile("/settings.json", update.settingsFlashJson);
|
||||
writeFile("/layout.json", update.layoutJson);
|
||||
}
|
||||
Reference in New Issue
Block a user