Index: firmware/App/Modes/ModePreTreat.c =================================================================== diff -u -r68aefeff8890cdfa956c7bfdf0d4505b4ac25cb7 -r86181e7240394729be36c3265b47d29a669a7914 --- firmware/App/Modes/ModePreTreat.c (.../ModePreTreat.c) (revision 68aefeff8890cdfa956c7bfdf0d4505b4ac25cb7) +++ firmware/App/Modes/ModePreTreat.c (.../ModePreTreat.c) (revision 86181e7240394729be36c3265b47d29a669a7914) @@ -8,7 +8,7 @@ * @file ModePreTreat.c * * @author (last) Dara Navaei -* @date (last) 12-Nov-2021 +* @date (last) 04-Jan-2022 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -199,7 +199,10 @@ { case HD_PRE_TREATMENT_START_STATE: #ifndef SKIP_SAMPLE_WATER - transitionToSampleWater(); + if ( getSoftwareConfigStatus( SW_CONFIG_DISABLE_SAMPLE_WATER ) != SW_CONFIG_ENABLE_VALUE ) + { + transitionToSampleWater(); + } #endif currentPreTreatmentState = HD_PRE_TREATMENT_WATER_SAMPLE_STATE; break; @@ -273,6 +276,7 @@ { confirmInstallRequested = TRUE; } + // TODO - send a reject reason if not accepting confirmation } /*********************************************************************//** @@ -354,7 +358,10 @@ REQUEST_REJECT_REASON_CODE_T rejReason = REQUEST_REJECT_REASON_NO_PATIENT_CONNECTION_CONFIRM; #ifdef SKIP_UI_INTERACTION - patientConnectionConfirm = TRUE; + if ( getSoftwareConfigStatus( SW_CONFIG_DISABLE_UI_INTERACTION ) != SW_CONFIG_ENABLE_VALUE ) + { + patientConnectionConfirm = TRUE; + } #endif if ( TRUE == patientConnectionConfirm ) @@ -542,7 +549,8 @@ execSampleWater(); #ifndef SKIP_SAMPLE_WATER - if ( SAMPLE_WATER_COMPLETE_STATE == getSampleWaterState() ) + if ( ( SAMPLE_WATER_COMPLETE_STATE == getSampleWaterState() ) || + ( getSoftwareConfigStatus( SW_CONFIG_DISABLE_SAMPLE_WATER ) != SW_CONFIG_ENABLE_VALUE ) ) #endif { cmdDGSampleWater( SAMPLE_WATER_CMD_END ); @@ -647,7 +655,10 @@ HD_PRE_TREATMENT_MODE_STATE_T state = HD_PRE_TREATMENT_CART_INSTALL_STATE; #ifdef SKIP_UI_INTERACTION - confirmInstallRequested = TRUE; + if ( getSoftwareConfigStatus( SW_CONFIG_DISABLE_UI_INTERACTION ) != SW_CONFIG_ENABLE_VALUE ) + { + confirmInstallRequested = TRUE; + } #endif if ( TRUE == confirmInstallRequested ) @@ -763,7 +774,10 @@ execPreTreatmentRecirc(); #ifdef SKIP_UI_INTERACTION - continueToTreatmentRequested = TRUE; + if ( getSoftwareConfigStatus( SW_CONFIG_DISABLE_UI_INTERACTION ) != SW_CONFIG_ENABLE_VALUE ) + { + continueToTreatmentRequested = TRUE; + } #endif if ( TRUE == continueToTreatmentRequested )