mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 03:49:13 +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 {
|
struct updateFirm {
|
||||||
String settingsFlashJson;
|
String settingsFlashJson;
|
||||||
String configJson;
|
String configJson;
|
||||||
|
String layoutJson;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void upgradeInit();
|
extern void upgradeInit();
|
||||||
|
|||||||
@@ -110,9 +110,11 @@ const String getBinPath(String file) {
|
|||||||
void putUserDataToRam() {
|
void putUserDataToRam() {
|
||||||
update.configJson = readFile("config.json", 4096);
|
update.configJson = readFile("config.json", 4096);
|
||||||
update.settingsFlashJson = readFile("settings.json", 4096);
|
update.settingsFlashJson = readFile("settings.json", 4096);
|
||||||
|
update.layoutJson = readFile("layout.json", 4096);
|
||||||
}
|
}
|
||||||
|
|
||||||
void saveUserDataToFlash() {
|
void saveUserDataToFlash() {
|
||||||
writeFile("/config.json", update.configJson);
|
writeFile("/config.json", update.configJson);
|
||||||
writeFile("/settings.json", update.settingsFlashJson);
|
writeFile("/settings.json", update.settingsFlashJson);
|
||||||
|
writeFile("/layout.json", update.layoutJson);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user