mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
баг аналогового сенсора исправлен
This commit is contained in:
28
src/main.cpp
28
src/main.cpp
@@ -1,28 +1,30 @@
|
||||
|
||||
#include <SSDP.h>
|
||||
|
||||
#include "BufferExecute.h"
|
||||
#include "Bus.h"
|
||||
#include "Class/CallBackTest.h"
|
||||
#include "Class/NotAsync.h"
|
||||
#include "Class/ScenarioClass3.h"
|
||||
#include "Cmd.h"
|
||||
#include "FileSystem.h"
|
||||
#include "Global.h"
|
||||
#include "Init.h"
|
||||
#include "ItemsList.h"
|
||||
#include "RemoteOrdersUdp.h"
|
||||
#include "SoftUART.h"
|
||||
#include "Telegram.h"
|
||||
#include "Tests.h"
|
||||
#include "Utils/StatUtils.h"
|
||||
#include "Utils/Timings.h"
|
||||
#include "Utils/WebUtils.h"
|
||||
#include "items/ButtonInClass.h"
|
||||
#include "items/vLogging.h"
|
||||
#include "items/vImpulsOut.h"
|
||||
#include "items/vSensorDallas.h"
|
||||
#include "items/vCountDown.h"
|
||||
#include "items/vImpulsOut.h"
|
||||
#include "items/vLogging.h"
|
||||
#include "items/vSensorAnalog.h"
|
||||
#include "items/vSensorDallas.h"
|
||||
#include "items/vSensorUltrasonic.h"
|
||||
#include "Telegram.h"
|
||||
#include "SoftUART.h"
|
||||
#include "FileSystem.h"
|
||||
#include "Tests.h"
|
||||
|
||||
void not_async_actions();
|
||||
|
||||
@@ -47,7 +49,7 @@ void setup() {
|
||||
#endif
|
||||
clockInit();
|
||||
timeInit();
|
||||
sensorsInit(); //Will be remooved
|
||||
sensorsInit(); //Will be remooved
|
||||
itemsListInit();
|
||||
espInit();
|
||||
routerConnect();
|
||||
@@ -69,15 +71,12 @@ void setup() {
|
||||
#endif
|
||||
getFSInfo();
|
||||
|
||||
testsPerform();
|
||||
testsPerform();
|
||||
|
||||
just_load = false;
|
||||
initialized = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void loop() {
|
||||
if (!initialized) {
|
||||
return;
|
||||
@@ -130,4 +129,9 @@ void loop() {
|
||||
myCountDown->at(i).loop();
|
||||
}
|
||||
}
|
||||
if (mySensorAnalog != nullptr) {
|
||||
for (unsigned int i = 0; i < mySensorAnalog->size(); i++) {
|
||||
mySensorAnalog->at(i).loop();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user