Index: firmware/App/Controllers/Valves.c =================================================================== diff -u -rb1e80ded2bf5d639b417f126f77883d97342dc41 -r8da12f877491ce76e60645acfa738458f954293a --- firmware/App/Controllers/Valves.c (.../Valves.c) (revision b1e80ded2bf5d639b417f126f77883d97342dc41) +++ firmware/App/Controllers/Valves.c (.../Valves.c) (revision 8da12f877491ce76e60645acfa738458f954293a) @@ -19,6 +19,7 @@ #include "reg_het.h" #include "gio.h" +#include "Battery.h" #include "FPGA.h" #include "MessageSupport.h" #include "NVDataMgmt.h" @@ -1171,7 +1172,7 @@ for ( valve = VDI; valve < NUM_OF_VALVES; valve++ ) { // Check the valve is in Idle state, otherwise the position should not be checked - if ( ( valvesStatus[ valve ].execState == VALVE_STATE_IDLE ) && ( FALSE == isAlarmActive( ALARM_ID_HD_AC_POWER_LOST ) ) ) + if ( ( valvesStatus[ valve ].execState == VALVE_STATE_IDLE ) && ( FALSE == isACPowerLost() ) ) { U32 maxDeviation = MAX_DEVIATION_FROM_TARGET_IN_COUNTS;