Index: firmware/App/Modes/ModeStandby.c =================================================================== diff -u -rcfbf6ff43be0b19bfa25f0edb34300c0bcab96eb -r31b1a66bc92068f86ff154e63d8cf9393d65258f --- firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision cfbf6ff43be0b19bfa25f0edb34300c0bcab96eb) +++ firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision 31b1a66bc92068f86ff154e63d8cf9393d65258f) @@ -437,20 +437,20 @@ case ALARM_ACTION_STOP: if ( isAlarmActive( ALARM_ID_TD_VENOUS_BUBBLE_DETECTED ) != TRUE ) { + // no stop action in standby mode + } + // if Dialin enabled bubble detection, stop on venous bubble detection alarm + else + { + // Pumps should be off signalBloodPumpHardStop(); + stopSyringePump(); + + // Set valves to safe positions + setValveAirTrap( STATE_CLOSED ); + setValvePosition( H1_VALV, VALVE_POSITION_C_CLOSE ); + setValvePosition( H19_VALV, VALVE_POSITION_C_CLOSE ); } -// // if Dialin enabled bubble detection, stop on venous bubble detection alarm -// else -// { -// // Pumps should be off -// signalBloodPumpHardStop(); -// stopSyringePump(); -// -// // Set valves to safe positions -// setValveAirTrap( STATE_CLOSED ); -// setValvePosition( H1_VALV, VALVE_POSITION_C_CLOSE ); -// setValvePosition( H19_VALV, VALVE_POSITION_C_CLOSE ); -// } break; default: