Index: firmware/App/Services/Reservoirs.c =================================================================== diff -u -r40f46e196349e3dd730048a354df8bbb2e40407d -raee635c5fbb303aaa0641617e84491a4a1e0d5a4 --- firmware/App/Services/Reservoirs.c (.../Reservoirs.c) (revision 40f46e196349e3dd730048a354df8bbb2e40407d) +++ firmware/App/Services/Reservoirs.c (.../Reservoirs.c) (revision aee635c5fbb303aaa0641617e84491a4a1e0d5a4) @@ -510,7 +510,9 @@ timeWaitToFillMS = timeDepleteMS - ( getFillTimeMS() + RESERVOIR_SETTLE_TIME_MS + RESERVOIR_CYCLE_EXTRA_MARGIN_TIME_MS ); // If the wait time has elapsed, trigger a fill command - if ( timeWaitToFillMS <= 0 ) + // TODO uncomment + //if ( timeWaitToFillMS <= 0 ) + // TODO uncomment { cmdStartDGFill( FILL_RESERVOIR_TO_VOLUME_ML, targetFillFlowRateLPM ); } @@ -585,7 +587,7 @@ DG_RESERVOIR_ID_T inactiveRes = getDGInactiveReservoir(); // TODO test code remove - //if ( TRUE == test ) + if ( TRUE == test ) { // Signal dialysis sub-mode to capture baseline volume for next reservoir. setStartReservoirVolume( inactiveRes ); @@ -607,9 +609,9 @@ reservoirSwitchStartTimeMS = getMSTimerCount(); // TODO test code - state = TREATMENT_RESERVOIR_MGMT_WAIT_FOR_SWITCH_SETTLE_STATE; + //state = TREATMENT_RESERVOIR_MGMT_WAIT_FOR_SWITCH_SETTLE_STATE; // For reservoir test, it should go back to start state - //state = TREATMENT_RESERVOIR_MGMT_START_STATE; + state = TREATMENT_RESERVOIR_MGMT_START_STATE; // TODO test code }