Index: firmware/App/Modes/BalancingChamber.c =================================================================== diff -u -r6679a2cd813b21a8cb4c58b3eeb721e0eef9a10b -r9102c5da21a15bdaf4bb3bc38795ceb064e3c443 --- firmware/App/Modes/BalancingChamber.c (.../BalancingChamber.c) (revision 6679a2cd813b21a8cb4c58b3eeb721e0eef9a10b) +++ firmware/App/Modes/BalancingChamber.c (.../BalancingChamber.c) (revision 9102c5da21a15bdaf4bb3bc38795ceb064e3c443) @@ -340,7 +340,8 @@ } else { - //TODO : Alarm handling when pressure is not in range + //Alarm when pressure is not in range + SET_ALARM_WITH_2_F32_DATA( ALARM_ID_DD_BC_STATE1_FILL_START_PRESSURE_OUT_OF_RANGE, freshDialPressure, spentDialPressure ); } return state; @@ -408,7 +409,8 @@ { if ( TRUE != isPressureStalbilizedDuringFill ) { - // TODO : Alarm handling for switching time expired, but still pressure not in range, + // Alarm when switching time expired, but still pressure not in range, + SET_ALARM_WITH_2_F32_DATA( ALARM_ID_DD_BC_STATE1_FILL_END_PRESSURE_OUT_OF_RANGE, freshDialPressure, spentDialPressure ); } else { @@ -453,7 +455,8 @@ } else { - //TODO : Alarm handling when pressure is not in range + //Alarm when pressure is not in range + SET_ALARM_WITH_2_F32_DATA( ALARM_ID_DD_BC_STATE2_FILL_START_PRESSURE_OUT_OF_RANGE, freshDialPressure, spentDialPressure ); } return state; } @@ -494,7 +497,8 @@ { if ( TRUE != isPressureStalbilizedDuringFill ) { - // TODO : Alarm handling for switching time expired, but still pressure not in range, + // Alarm when switching time expired, but still pressure not in range, + SET_ALARM_WITH_2_F32_DATA( ALARM_ID_DD_BC_STATE2_FILL_END_PRESSURE_OUT_OF_RANGE, freshDialPressure, spentDialPressure ); } else {