Index: firmware/App/Tasks/TaskGeneral.c =================================================================== diff -u -r6419179374edcd65da462de84e8aeaefb7e20320 -rb66dabe73c8418e0e4ee358ce787b6d9bd9e128e --- firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision 6419179374edcd65da462de84e8aeaefb7e20320) +++ firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision b66dabe73c8418e0e4ee358ce787b6d9bd9e128e) @@ -22,14 +22,18 @@ #include "DGInterface.h" #include "DialInFlow.h" #include "DialOutFlow.h" +#include "Fans.h" #include "NVDataMgmt.h" #include "OperationModes.h" #include "PresOccl.h" +#include "RTC.h" +#include "Switches.h" #include "SystemComm.h" #include "SystemCommMessages.h" -#include "WatchdogMgmt.h" -#include "TaskGeneral.h" -#include "RTC.h" +#include "TaskGeneral.h" +#include "Temperatures.h" +#include "Voltages.h" +#include "WatchdogMgmt.h" /** * @addtogroup TaskGeneral @@ -58,7 +62,7 @@ checkInWithWatchdogMgmt( TASK_GENERAL ); // Do this first to keep timing consistent with watchdog management // Manage data received from other sub-systems - execSystemCommRx(); + execSystemCommRx(); // Prevent most processing until UI has started communicating #ifndef SIMULATE_UI @@ -71,12 +75,24 @@ // Monitor pressure/occlusion sensors execPresOccl(); -#endif +#endif + // Monitor voltages + execVoltagesMonitor(); + + // Monitor switches + execSwitches(); + + // Monitor temperatures + execTemperatures(); // Run operation mode state machine execOperationModes(); #ifndef BOARD_WITH_NO_HARDWARE + + // Manage RTC + execRTC(); + // Control air trap valve execAirTrapController(); @@ -88,11 +104,11 @@ // Control dialysate outlet pump execDialOutFlowController(); -#endif - - // Manage RTC - execRTC(); + // Monitor/Control fans + execFans(); +#endif + // Manage NVDataMgmt process record state machine execNVDataMgmtProcessRecord();