Index: firmware/App/Controllers/DGInterface.c =================================================================== diff -u -r633861a3e472c1a288fa10a52ec0f7e7153e4dce -r981de1f5228152ec6877aceae3d66ebf5efc7101 --- firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 633861a3e472c1a288fa10a52ec0f7e7153e4dce) +++ firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 981de1f5228152ec6877aceae3d66ebf5efc7101) @@ -60,6 +60,7 @@ static U32 dgSubMode = 0; ///< Current state (sub-mode) of current DG operation mode. static BOOL dgStarted = FALSE; ///< Flag indicates whether we have commanded the DG to start or stop. static BOOL dgTrimmerHeaterOn = FALSE; ///< Flag indicates whether we have commanded the DG to start or stop the trimmer heater. +static BOOL dgWaterSampled = FALSE; ///< Flag indicates whether we have commanded the DG to sample water. // State machine states /// Current state of treatment mode reservoir management. @@ -126,6 +127,7 @@ dgStarted = FALSE; dgTrimmerHeaterOn = FALSE; + dgWaterSampled = FALSE; dgPrimaryTempSet = 0.0; dgTrimmerTempSet = 0.0; dgActiveReservoirSet = DG_RESERVOIR_2; @@ -854,9 +856,10 @@ * @details Outputs: sample water command sent to DG. * @return none *************************************************************************/ -void cmdDGSampleWater( SAMPLE_WATER_CMD_T cmd ) +void cmdDGSampleWater( void ) { - sendDGSampleWaterCommand( cmd ); + dgWaterSampled = TRUE; + sendDGSampleWaterCommand(); } /*********************************************************************//**