Index: firmware/App/Tasks/TaskGeneral.c =================================================================== diff -u -r9f2e4e5933d2e418b75f91e3db5df69c71878d43 -rb66dabe73c8418e0e4ee358ce787b6d9bd9e128e --- firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision 9f2e4e5933d2e418b75f91e3db5df69c71878d43) +++ firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision b66dabe73c8418e0e4ee358ce787b6d9bd9e128e) @@ -22,13 +22,16 @@ #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 "TaskGeneral.h" +#include "Temperatures.h" #include "Voltages.h" #include "WatchdogMgmt.h" @@ -59,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 @@ -74,12 +77,22 @@ execPresOccl(); #endif // Monitor voltages - execVoltagesMonitor(); + 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(); @@ -91,11 +104,11 @@ // Control dialysate outlet pump execDialOutFlowController(); -#endif - - // Manage RTC - execRTC(); + // Monitor/Control fans + execFans(); +#endif + // Manage NVDataMgmt process record state machine execNVDataMgmtProcessRecord();