Index: firmware/App/Services/Reservoirs.c =================================================================== diff -u -r9d81efee3ea73c452bb6b84501c8accf85ab81f7 -ref398e685d6cfbdcb8c18fd9319819672c6c9d89 --- firmware/App/Services/Reservoirs.c (.../Reservoirs.c) (revision 9d81efee3ea73c452bb6b84501c8accf85ab81f7) +++ firmware/App/Services/Reservoirs.c (.../Reservoirs.c) (revision ef398e685d6cfbdcb8c18fd9319819672c6c9d89) @@ -606,16 +606,20 @@ if ( ( TRUE == didTimeout( reservoirSwitchStartTimeMS, 15000 /*RESERVOIR_SETTLE_TIME_MS*/ ) ) && ( ( dilutionLevelPct >= MAX_RESERVOIR_DILUTION ) || ( volSpentML >= (F32)FILL_RESERVOIR_TO_VOLUME_ML ) || ( getReservoirWeight( active ) > MAX_RESERVOIR_VOL_BEFORE_SWITCH_ML ) ) ) { - DG_RESERVOIR_ID_T inactiveRes = getDGInactiveReservoir(); + DG_SWITCH_RSRVRS_CMD_T rsrvrCmd; + DG_RESERVOIR_ID_T inactiveRes = getDGInactiveReservoir(); + rsrvrCmd.reservoirID = (U32)inactiveRes; + rsrvrCmd.useLastTrimmerHeaterDC = TRUE; + // TODO test code remove //if ( TRUE == test ) // TODO comment the if statement { // Signal dialysis sub-mode to capture baseline volume for next reservoir. setStartReservoirVolume( inactiveRes ); // Command DG to switch reservoirs - cmdSetDGActiveReservoir( inactiveRes ); + cmdSetDGActiveReservoir( &rsrvrCmd ); // Signal dialysis sub-mode to switch reservoirs signalReservoirsSwitched();