Index: firmware/App/Controllers/DialInFlow.c =================================================================== diff -u -r30f049651877229042e3f8700c8596e5b9a1e0f4 -ra2bc96881a5fc3d8f779246b2abebf15a8de9384 --- firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 30f049651877229042e3f8700c8596e5b9a1e0f4) +++ firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision a2bc96881a5fc3d8f779246b2abebf15a8de9384) @@ -261,7 +261,7 @@ targetDialInFlowRate = ( dir == MOTOR_DIR_FORWARD ? (S32)flowRate : (S32)flowRate * -1 ); dialInPumpDirection = dir; dialInPumpControlMode = mode; - // Set PWM duty cycle target to an estimated initial target to ramp to based on target flow rate - then we'll control to flow when ramp completed + // Set PWM duty cycle target to an estimated initial target to ramp to based on target flow rate - then we will control to flow when ramp completed dialInPumpPWMDutyCyclePct = DIP_PWM_FROM_ML_PER_MIN((F32)flowRate); // ~ 8% per 100 mL/min with a 10% zero offset added in (e.g. 100 mL/min = 8+10 = 18%) switch ( dialInPumpState ) @@ -338,7 +338,7 @@ dialInPumpRotorSpeedRPM.data = ( 1.0 / (F32)deltaTime ) * (F32)MS_PER_SECOND * (F32)SEC_PER_MIN; dipRotorRevStartTime = rotTime; - // If we're supposed to stop pump at home position, stop pump now. + // If we are supposed to stop pump at home position, stop pump now. if ( TRUE == dipStopAtHomePosition ) { signalDialInPumpHardStop(); @@ -403,7 +403,7 @@ // Calculate dialysate inlet pump motor speed/direction from hall sensor count updateDialInPumpSpeedAndDirectionFromHallSensors(); - // Don't start enforcing checks until out of init/POST mode + // Do not start enforcing checks until out of init/POST mode if ( opMode != MODE_INIT ) { // Check pump direction @@ -468,7 +468,7 @@ { DIAL_IN_PUMP_STATE_T result = DIAL_IN_PUMP_OFF_STATE; - // If we've been given a flow rate, setup ramp up and transition to ramp up state + // If we have been given a flow rate, setup ramp up and transition to ramp up state if ( targetDialInFlowRate != 0 ) { // Set initial PWM duty cycle @@ -1105,7 +1105,7 @@ *************************************************************************/ static void checkDialInPumpFlowAgainstSpeed( void ) { - // Check only performed while in treatment mode and while we're in control to target state + // Check only performed while in treatment mode and while we are in control to target state if ( ( MODE_TREA == getCurrentOperationMode() ) && ( DIAL_IN_PUMP_CONTROL_TO_TARGET_STATE == dialInPumpState ) ) { F32 flow = getMeasuredDialInFlowRate();