Index: firmware/App/Modes/ModeFill.c =================================================================== diff -u -red367cb6b1490e079043239d277a29a2f4747ed7 -r6e49f490cdfd0450c1477eeb903221937e0d567e --- firmware/App/Modes/ModeFill.c (.../ModeFill.c) (revision ed367cb6b1490e079043239d277a29a2f4747ed7) +++ firmware/App/Modes/ModeFill.c (.../ModeFill.c) (revision 6e49f490cdfd0450c1477eeb903221937e0d567e) @@ -791,14 +791,17 @@ if ( TRUE == didTimeout( concPumpPrimeStartTimeMS, CONC_PUMPS_PRIME_CHECK_COND_SNSRS_TIME_OUT_MS ) ) { /* Once the time for priming the concentrate lines has elapsed, check the mixing conductivity of the sensors - * If the acid and bicarb conductivity values are at about 95% of the target concentrate during fill, transition to the next state - * If the acid and bicarb conductivity values are not at 95% but the maximum prime time has elapsed, transition to the next state + * If the acid and bicarb conductivity values are at about 100% of the target concentrate during fill, transition to the next state + * If the acid and bicarb conductivity values are not at 100% but the maximum prime time has elapsed, transition to the next state */ F32 acidConduSPerCM = getConductivityValue( CONDUCTIVITYSENSORS_CD1_SENSOR ); F32 bicarbConduSPerCM = getConductivityValue( CONDUCTIVITYSENSORS_CD2_SENSOR ); F32 acidFillConduSPerCM = chemicalsCond.fillCondValues[ chemicalsTypes.acidType ][ FILL_COND_NORMAL_OP ].acidConduSPerCM; F32 bicarbFillConduSPerCM = chemicalsCond.fillCondValues[ chemicalsTypes.acidType ][ FILL_COND_NORMAL_OP ].bicarbConduSPerCM; + /* we are insisting conductivity reach 100% of expected level since signal is very noisy and peak noise will reach 100% when average is about 93%. + * if sensor noise is reduced, this level should also be reduced accordingly. + */ if ( ( acidConduSPerCM >= ( acidFillConduSPerCM * HUNDRED_PERCENT_FACTOR ) ) && ( bicarbConduSPerCM >= ( bicarbFillConduSPerCM * HUNDRED_PERCENT_FACTOR ) ) ) { result = DG_FILL_MODE_STATE_DELIVER_DIALYSATE;