File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 16
16
void setup () {
17
17
System::getInstance ()->init ();
18
18
List<Event*>* const eventList = new List<Event*>();
19
+ Command* startCommand = nullptr ;
20
+ Command** currentCommand = &startCommand;
19
21
SerialInterface::getInstance ()->init (115200 );
20
22
21
23
System::getInstance ()->addTask (new TemperatureHumidityMonitoring (TEMPERATURE_HUMIDITY_PERIOD, getTemperatureHumidityMonitoringContext (eventList)));
@@ -24,7 +26,9 @@ void setup() {
24
26
System::getInstance ()->addTask (new PresenceMonitoring (PRESENCE_MONITORING_PERIOD, getPresenceMonitoringContext (eventList)));
25
27
System::getInstance ()->addTask (new PeopleTracking (PEOPLE_TRACKING_PERIOD, getPeopleTrackingContext (eventList)));
26
28
System::getInstance ()->addTask (new ORAdvancedMonitoring (OR_ADVANCE_MONITORING_PERIOD, getORAdvancedMonitoringContext (eventList)));
27
- System::getInstance ()->addTask (new CommandListener (COMMAND_LISTENER_PERIOD, getCommandListenerContext (SerialInterface::getInstance ())));
29
+ System::getInstance ()->addTask (new CommandListener (COMMAND_LISTENER_PERIOD, getCommandListenerContext (SerialInterface::getInstance (), currentCommand)));
30
+ System::getInstance ()->addTask (new HvacSystem (HVAC_SYSTEM_PERIOD, getHvacSystemContextOperatingRoom (eventList, currentCommand)));
31
+ System::getInstance ()->addTask (new HvacSystem (HVAC_SYSTEM_PERIOD, getHvacSystemContextPreOperatingRoom (eventList, currentCommand)));
28
32
}
29
33
30
34
void loop () {
You can’t perform that action at this time.
0 commit comments