Index: firmware/App/Controllers/DGInterface.c =================================================================== diff -u -rdaaf76c5b69282cb044896b7722c73ac7c89f1a1 -rd4a90fda6c1f463633a4e7d45424acd2d2a0bce8 --- firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision daaf76c5b69282cb044896b7722c73ac7c89f1a1) +++ firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision d4a90fda6c1f463633a4e7d45424acd2d2a0bce8) @@ -221,7 +221,7 @@ { if ( DG_RECIRCULATE_MODE_STATE_RECIRC_WATER == dgSubMode ) { - cmdStartDGDrain( DRAIN_RESERVOIR_TO_VOLUME_ML ); + cmdStartDGDrain( DRAIN_RESERVOIR_TO_VOLUME_ML, FALSE ); } } else if ( DG_MODE_DRAI == dgOpMode ) @@ -791,14 +791,19 @@ * @brief * The cmdStartDGDrain function sends a drain command message to the DG. * @details Inputs: none - * @details Outputs: drain command sent to DG. - * @param drainToVolMl volume (in mL) to drain inactive reservoir to + * @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 * @return none *************************************************************************/ -void cmdStartDGDrain( U32 drainToVolMl ) -{ +void cmdStartDGDrain( U32 drainToVolMl, BOOL tareLoadCell ) +{ + DRAIN_RESERVOIR_CMD_PAYLOAD_T payload; + + payload.drainToVolumeML = drainToVolMl; + payload.tareLoadCells = tareLoadCell; dgReservoirDrainVolumeTargetSet = drainToVolMl; - sendDGDrainCommand( drainToVolMl ); + sendDGDrainCommand( &payload ); } /*********************************************************************//**