Index: firmware/App/Tasks/TaskGeneral.c =================================================================== diff -u -r9f2e4e5933d2e418b75f91e3db5df69c71878d43 -r69b93e39861c5493d273f25d9e43cacd0b5819e2 --- firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision 9f2e4e5933d2e418b75f91e3db5df69c71878d43) +++ firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision 69b93e39861c5493d273f25d9e43cacd0b5819e2) @@ -26,6 +26,7 @@ #include "OperationModes.h" #include "PresOccl.h" #include "RTC.h" +#include "Switches.h" #include "SystemComm.h" #include "SystemCommMessages.h" #include "TaskGeneral.h" @@ -59,7 +60,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 @@ -80,6 +81,10 @@ execOperationModes(); #ifndef BOARD_WITH_NO_HARDWARE + + // Manage RTC + execRTC(); + // Control air trap valve execAirTrapController(); @@ -91,11 +96,11 @@ // Control dialysate outlet pump execDialOutFlowController(); -#endif - - // Manage RTC - execRTC(); + // Monitor switches + execSwitches(); +#endif + // Manage NVDataMgmt process record state machine execNVDataMgmtProcessRecord();