Index: firmware/App/Controllers/DGInterface.c =================================================================== diff -u -r5af49574b5f8e99aa9ea451033213dcd765ea837 -r46c538cc5b7b40ddc8227e2ad1c77bab93716571 --- firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 5af49574b5f8e99aa9ea451033213dcd765ea837) +++ firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 46c538cc5b7b40ddc8227e2ad1c77bab93716571) @@ -254,7 +254,7 @@ { if ( DG_GEN_IDLE_MODE_STATE_FLUSH_WATER == dgSubMode ) { - cmdStartDGDrain( DRAIN_RESERVOIR_TO_VOLUME_ML, TRUE, FALSE ); + cmdStartDGDrain( DRAIN_RESERVOIR_TO_VOLUME_ML, TRUE, FALSE, TRUE ); } } else if ( DG_MODE_DRAI == dgOpMode ) @@ -863,17 +863,19 @@ * @details Inputs: none * @details Outputs: drain command sent to DG. * @param drainToVolMl volume (in mL) to drain inactive reservoir to - * @param tareLoadCell flag to tell DG tare load cell or not + * @param tareLoadCell flag to tell DG tare load cell or not + * @param start flag to tell DG to start or stop the drain mode * @return none *************************************************************************/ -void cmdStartDGDrain( U32 drainToVolMl, BOOL tareLoadCell, BOOL rinse ) +void cmdStartDGDrain( U32 drainToVolMl, BOOL tareLoadCell, BOOL rinse, BOOL start ) { DRAIN_RESERVOIR_CMD_PAYLOAD_T payload; dgCmdResp[ DG_CMD_START_DRAIN ].commandID = DG_CMD_NONE; payload.drainToVolumeML = drainToVolMl; payload.tareLoadCells = tareLoadCell; - payload.rinseConcentrateLines = rinse; + payload.rinseConcentrateLines = rinse; + payload.cmd = start; dgReservoirDrainVolumeTargetSet = drainToVolMl; sendDGDrainCommand( &payload );