Index: firmware/App/Controllers/DialOutFlow.c =================================================================== diff -u -r30f049651877229042e3f8700c8596e5b9a1e0f4 -ra2bc96881a5fc3d8f779246b2abebf15a8de9384 --- firmware/App/Controllers/DialOutFlow.c (.../DialOutFlow.c) (revision 30f049651877229042e3f8700c8596e5b9a1e0f4) +++ firmware/App/Controllers/DialOutFlow.c (.../DialOutFlow.c) (revision a2bc96881a5fc3d8f779246b2abebf15a8de9384) @@ -245,7 +245,7 @@ lastGivenRate = flowRate; dialOutPumpDirection = dir; dialOutPumpControlMode = 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 dialOutPumpPWMDutyCyclePct = DOP_PWM_FROM_ML_PER_MIN(adjFlow); switch ( dialOutPumpState ) @@ -339,7 +339,7 @@ dialOutPumpRotorSpeedRPM.data = ( 1.0 / (F32)deltaTime ) * (F32)MS_PER_SECOND * (F32)SEC_PER_MIN; dopRotorRevStartTime = 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 == dopStopAtHomePosition ) { signalDialOutPumpHardStop(); @@ -425,7 +425,7 @@ // Calculate dialysate outlet pump motor speed/direction from hall sensor count updateDialOutPumpSpeedAndDirectionFromHallSensors(); - // Don't start enforcing checks until out of init/POST mode + // Do not start enforcing checks until out of init/POST mode if ( getCurrentOperationMode() != MODE_INIT ) { // Check pump direction @@ -487,7 +487,7 @@ { DIAL_OUT_PUMP_STATE_T result = DIAL_OUT_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 ( lastGivenRate > 0 ) { // Set initial PWM duty cycle @@ -562,7 +562,7 @@ { DIAL_OUT_PUMP_STATE_T result = DIAL_OUT_PUMP_RAMPING_DOWN_STATE; - // Have we essentially reached zero speed + // Have we essentially reached zero speed? if ( dialOutPumpPWMDutyCyclePctSet < (MAX_DIAL_OUT_PUMP_PWM_STEP_DN_CHANGE + DOP_PWM_ZERO_OFFSET) ) { stopDialOutPump();