Index: firmware/App/Tasks/TaskGeneral.c =================================================================== diff -u -rf6016459473bdb85aebe393c07cd580b973d7247 -r88f28230d288947ba84840b967e95b32e3deffaa --- firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision f6016459473bdb85aebe393c07cd580b973d7247) +++ firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision 88f28230d288947ba84840b967e95b32e3deffaa) @@ -29,6 +29,7 @@ #include "SystemCommMessages.h" #include "TaskGeneral.h" #include "Thermistors.h" +#include "UVReactors.h" #include "WatchdogMgmt.h" /** @@ -53,7 +54,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 @@ -83,7 +92,10 @@ execFans(); // manage time-based reservoir tasks - execReservoirs(); + execReservoirs(); + + // Manage UV reactors controller + execUVReactos(); #ifndef DISABLE_HEATERS_AND_TEMPS // Primary heaters state machine