Index: firmware/App/Tasks/TaskGeneral.c =================================================================== diff -u -r3f22d883958a14b6193d6cd59c9acdbbd359b69e -r00b0fcefb9f74e7c050b5c83ad5c285e6769ef78 --- firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision 3f22d883958a14b6193d6cd59c9acdbbd359b69e) +++ firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision 00b0fcefb9f74e7c050b5c83ad5c285e6769ef78) @@ -26,7 +26,8 @@ #include "ROPump.h" #include "SystemComm.h" #include "SystemCommMessages.h" -#include "TaskGeneral.h" +#include "TaskGeneral.h" +#include "UVReactors.h" #include "WatchdogMgmt.h" /** @@ -51,7 +52,15 @@ * @return none *************************************************************************/ void taskGeneral( void ) -{ +{ + /* Order of exec functions + * 1. Comm Rx + * 2. Monitors + * 3. Op modes + * 4. Controllers + * 5. Comm Tx + * */ + #ifdef TASK_TIMING_OUTPUT_ENABLED // SET_TASK_ON(); // TODO - uncomment and define TASK_TIMING_OUTPUT_ENABLED to monitor this tasks timing #endif @@ -75,7 +84,10 @@ execConcentratePumpController(); // manage time-based reservoir tasks - execReservoirs(); + execReservoirs(); + + // Manage UV reactors controller + execUVReactos(); #ifndef DISABLE_HEATERS_AND_TEMPS // Primary heaters state machine