Index: firmware/App/Controllers/UVReactors.c =================================================================== diff -u -r86eec09ab556fbd970ddcae9dc622727928ee757 -r67021fbc633259e8e1bce76749dbef7d0cb51998 --- firmware/App/Controllers/UVReactors.c (.../UVReactors.c) (revision 86eec09ab556fbd970ddcae9dc622727928ee757) +++ firmware/App/Controllers/UVReactors.c (.../UVReactors.c) (revision 67021fbc633259e8e1bce76749dbef7d0cb51998) @@ -48,7 +48,7 @@ { UV_REACTOR_STATE_T execState; ///< UV reactor executive state PIN_SIGNAL_STATE_T pinSignalState; ///< UV reactor pin signal state - SWITCH_STATES_T switchState; ///< UV reactor turn on/turn off state + UV_REACTOR_STATES_T switchState; ///< UV reactor turn on/turn off state U32 reactorEnablePin; ///< UV reactor enable pin of GIO port A U32 reactorHealthStatusPin; ///< UV reactor status pin of N2HET1 OVERRIDE_U32_T healthStatus; ///< UV reactor current health status @@ -358,7 +358,7 @@ // If the a reactor is requested to be on and it is off, turn it on // and change the state - if( TURN_ON == reactorsStatus[ reactor ].switchState ) + if ( TURN_ON == reactorsStatus[ reactor ].switchState ) { setReactorEnableStatus( reactor, PIN_SIGNAL_HIGH ); @@ -389,13 +389,13 @@ checkPersistentAlarm( ALARM_ID_UV_REACTOR_NOT_HEALTHY, isReactorUnhealthy, (U32)reactor, MAX_ALLOWED_UNHEALTHY_REACTOR_PERIOD ); // Check if the alarm has been active - if( isAlarmActive( ALARM_ID_UV_REACTOR_NOT_HEALTHY ) ) + if ( TRUE == isAlarmActive( ALARM_ID_UV_REACTOR_NOT_HEALTHY ) ) { reactorsStatus[ reactor ].switchState = TURN_OFF; } // Check if it has been requested to turn off a reactor - if( TURN_OFF == reactorsStatus[ reactor ].switchState ) + if ( TURN_OFF == reactorsStatus[ reactor ].switchState ) { setReactorEnableStatus( reactor, PIN_SIGNAL_LOW );