Index: firmware/App/Controllers/DGInterface.c =================================================================== diff -u -r85ab84d9a0668e1e3976b00eb29e79c38c81b651 -r78c03fb021407eaf8d17dd0f74f6969443b397ce --- firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 85ab84d9a0668e1e3976b00eb29e79c38c81b651) +++ firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 78c03fb021407eaf8d17dd0f74f6969443b397ce) @@ -75,7 +75,7 @@ static U32 dgROPumpPressureSetPtPSI = 0; ///< Latest RO pump target pressure reported by the DG. static U32 dgDrainPumpSpeedSetPtRPM = 0; ///< Latest Drain pump target speed reported by the DG. -// reservoir data +// Reservoir data static DG_RESERVOIR_ID_T dgActiveReservoir = DG_RESERVOIR_2; ///< Latest active reservoir reported by the DG. static DG_RESERVOIR_ID_T dgActiveReservoirSet = DG_RESERVOIR_2; ///< Active reservoir commanded. static U32 dgReservoirFillVolumeTarget = 0; ///< Latest fill-to volume reported by the DG. @@ -168,7 +168,7 @@ U32 msSinceLastVolumeCalc = calcTimeSince( resUseTimer ); F32 flowRateMlPerMs = (F32)getTargetDialInFlowRate() / (F32)( MS_PER_SECOND * SEC_PER_MIN ); - // calculate volume used from active reservoir - do not accumulate if saline bolus in progress + // Calculate volume used from active reservoir - do not accumulate if saline bolus in progress if ( SALINE_BOLUS_STATE_IN_PROGRESS != getSalineBolusState() ) { resUseVolumeMl += ( flowRateMlPerMs * msSinceLastVolumeCalc ); // TODO - should this calc be done and kept by Dialysis sub-mode? @@ -245,7 +245,7 @@ break; case TREATMENT_RESERVOIR_MGMT_WAIT_FOR_RES_SWITCH_STATE: - // reservoir switch during treatment should only occur in this state (i.e. when DG is ready). + // Reservoir switch during treatment should only occur in this state (i.e. when DG is ready). // switch reservoirs when active reservoir is spent (i.e. we've pumped fill volume through dialyzer) and DG ready if ( ( DG_MODE_CIRC == getDGOpMode() ) && ( DG_RECIRCULATE_MODE_STATE_RECIRC_WATER == getDGSubMode() ) && ( resUseVolumeMl >= (F32)dgReservoirFillVolumeTargetSet ) ) @@ -255,7 +255,7 @@ // signal dialysis sub-mode to capture baseline volume for next reservoir. setStartReservoirVolume(); - // command DG to switch reservoirs + // Command DG to switch reservoirs cmdSetDGActiveReservoir( inactiveRes ); // signal dialysis sub-mode to switch reservoirs signalReservoirsSwitched(); @@ -271,7 +271,7 @@ { // signal dialysis sub-mode to capture final volume of prior reservoir after settling. setFinalReservoirVolume(); - // reset to start state to restart drain, fill, switch process. + // Reset to start state to restart drain, fill, switch process. currentTrtResMgmtState = TREATMENT_RESERVOIR_MGMT_START_STATE; } break;