Index: firmware/App/Modes/ModeFault.c =================================================================== diff -u -rf9a866abfc44db38c01cb795fea894cce1042eec -rf1d684e536e7911b356a5d35320c909a1016d3d0 --- firmware/App/Modes/ModeFault.c (.../ModeFault.c) (revision f9a866abfc44db38c01cb795fea894cce1042eec) +++ firmware/App/Modes/ModeFault.c (.../ModeFault.c) (revision f1d684e536e7911b356a5d35320c909a1016d3d0) @@ -1,14 +1,14 @@ /************************************************************************** * -* Copyright (c) 2019-2022 Diality Inc. - All Rights Reserved. +* Copyright (c) 2019-2023 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * @file ModeFault.c * -* @author (last) Dara Navaei -* @date (last) 01-Sep-2022 +* @author (last) Sean Nash +* @date (last) 04-May-2023 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -70,15 +70,19 @@ DG_OP_MODE_T dgOperationMode = getDGOpMode(); initFaultMode(); + requestAlarmLampPattern( LAMP_PATTERN_FAULT ); // in case we get here before LED POST can take alarm lamp out of manual control. doorClosedRequired( FALSE, FALSE ); syringeDetectionRequired( FALSE ); + setVenousBubbleDetectionEnabled( FALSE ); // Set user alarm recovery actions allowed in this mode setAlarmUserActionEnabled( ALARM_USER_ACTION_RESUME, FALSE ); setAlarmUserActionEnabled( ALARM_USER_ACTION_RINSEBACK, FALSE ); setAlarmUserActionEnabled( ALARM_USER_ACTION_END_TREATMENT, FALSE ); // Stop trimmer heater cmdStopDGTrimmerHeater(); + // Stop syringe pump + stopSyringePump(); // If DG filling, abort it if ( DG_MODE_FILL == dgOperationMode ) { @@ -120,7 +124,12 @@ signalBloodPumpHardStop(); signalDialInPumpHardStop(); signalDialOutPumpHardStop(); - stopSyringePump(); +#ifndef _RELEASE_ + if ( SW_CONFIG_DISABLE_VALUE == getSoftwareConfigStatus( SW_CONFIG_DISABLE_AIR_PUMP ) ) +#endif + { + setAirPumpState( AIR_PUMP_STATE_OFF ); + } // Ensure all valves are in safe position setValveAirTrap( STATE_CLOSED );