Index: firmware/App/Tasks/TaskGeneral.c =================================================================== diff -u -rccf1219089b835ab2f9d401c0be0d2000be9010a -rbbd5ac2589c8093f681f2284367975ddd220b553 --- firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision ccf1219089b835ab2f9d401c0be0d2000be9010a) +++ firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision bbd5ac2589c8093f681f2284367975ddd220b553) @@ -21,10 +21,12 @@ #include "ConcentratePumps.h" #include "DrainPump.h" #include "Fans.h" -#include "Heaters.h" +#include "Heaters.h" +#include "NVDataMgmt.h" #include "OperationModes.h" #include "Reservoirs.h" -#include "ROPump.h" +#include "ROPump.h" +#include "RTC.h" #include "SystemComm.h" #include "SystemCommMessages.h" #include "TaskGeneral.h" @@ -71,8 +73,12 @@ checkInWithWatchdogMgmt( TASK_GENERAL ); // do this first to keep timing consistent with watchdog management // manage data received from other sub-systems - execSystemCommRx(); + execSystemCommRx(); + // Control and monitor RTC + execRTC(); + +#ifndef BOARD_WITH_NO_HARDWARE // monitor concentrate pumps execConcentratePumpMonitor(); @@ -95,7 +101,8 @@ execReservoirs(); // Manage UV reactors controller - execUVReactors(); + execUVReactos(); +#endif #ifndef DISABLE_HEATERS_AND_TEMPS // Primary heaters state machine @@ -105,7 +112,11 @@ execTrimmerHeater(); #endif // run operation mode state machine - execOperationModes(); + execOperationModes(); + + // Run non-volatile data management state machine that sends the data record + // to Dialin + execNVDataMgmtProcessRecord(); // manage data to be transmitted to other sub-systems execSystemCommTx();