mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 15:12:19 +03:00
Save date to flash added
This commit is contained in:
@@ -12,10 +12,8 @@ void loadConfig() {
|
||||
configSetupJson = readFile("config.json", 4096);
|
||||
configSetupJson.replace("\r\n", "");
|
||||
|
||||
#ifdef SAVE_SETTINGS_TO_FLASH
|
||||
configLiveJson = readFile("live.json", 4096);
|
||||
configLiveJson.replace("\r\n", "");
|
||||
#endif
|
||||
configStoreJson = readFile("store.json", 4096);
|
||||
configStoreJson.replace("\r\n", "");
|
||||
|
||||
jsonWriteStr(configSetupJson, "chipID", chipId);
|
||||
jsonWriteInt(configSetupJson, "firmware_version", FIRMWARE_VERSION);
|
||||
|
||||
Reference in New Issue
Block a user