mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 22:52:19 +03:00
Big changes. Compiling version
This commit is contained in:
21
src/Init.cpp
21
src/Init.cpp
@@ -2,16 +2,21 @@
|
||||
#include "BufferExecute.h"
|
||||
#include "Cmd.h"
|
||||
#include "Global.h"
|
||||
#include "items/Logging.h"
|
||||
#include "items/ImpulsOutClass.h"
|
||||
#include "items/ButtonOut.h"
|
||||
#include "items/SensorDallas.h"
|
||||
#include "items/vLogging.h"
|
||||
#include "items/vImpulsOut.h"
|
||||
#include "items/vButtonOut.h"
|
||||
#include "items/vSensorDallas.h"
|
||||
#include "items/vInput.h"
|
||||
|
||||
void loadConfig() {
|
||||
configSetupJson = readFile("config.json", 4096);
|
||||
//configSetupJson.replace(" ", "");
|
||||
configSetupJson.replace("\r\n", "");
|
||||
|
||||
#ifdef SAVE_SETTINGS_TO_FLASH
|
||||
configLiveJson = readFile("live.json", 4096);
|
||||
configLiveJson.replace("\r\n", "");
|
||||
#endif
|
||||
|
||||
jsonWriteStr(configSetupJson, "chipID", chipId);
|
||||
jsonWriteInt(configSetupJson, "firmware_version", FIRMWARE_VERSION);
|
||||
|
||||
@@ -53,6 +58,12 @@ void Device_init() {
|
||||
}
|
||||
buttonOut_KeyList = "";
|
||||
buttonOut_EnterCounter = -1;
|
||||
//======clear input params=======
|
||||
if (myInput != nullptr) {
|
||||
myInput->clear();
|
||||
}
|
||||
input_KeyList = "";
|
||||
input_EnterCounter = -1;
|
||||
//===================================
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user