Index: firmware/App/Controllers/DGInterface.c =================================================================== diff -u -r46c538cc5b7b40ddc8227e2ad1c77bab93716571 -r562333878837ad2ff1efa6e61e6cdbf332227fec --- firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 46c538cc5b7b40ddc8227e2ad1c77bab93716571) +++ firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 562333878837ad2ff1efa6e61e6cdbf332227fec) @@ -419,13 +419,13 @@ /*********************************************************************//** * @brief - * The getDGDialysateFlowRateMlMin function gets the latest dialysate flow + * The getDGDialysateFlowRateLMin function gets the latest dialysate flow * rate reported by the DG. * @details Inputs: dgDialysateFlowRateMlMin * @details Outputs: none - * @return Latest dialysate flow rate reported by DG. + * @return Latest dialysate flow rate (in L/min) reported by DG. *************************************************************************/ -F32 getDGDialysateFlowRateMlMin( void ) +F32 getDGDialysateFlowRateLMin( void ) { F32 result = dgDialysateFlowRateMlMin; @@ -437,12 +437,14 @@ * The getDialysateFlowDataFreshFlag function returns a flag to indicate * if the dialysate flow rate data reported by the DG is fresh or stale data. * @details Inputs: dgDialysateFlowDataFreshFlag - * @details Outputs: none + * @details Outputs: dgDialysateFlowDataFreshFlag * @return T/F flag to indicate fresh/stale status of dialysate flow data. *************************************************************************/ BOOL getDialysateFlowDataFreshFlag( void ) { - return dgDialysateFlowDataFreshFlag; + dgDialysateFlowDataFreshFlag = FALSE; + + return dgDialysateFlowDataFreshFlag; } /*********************************************************************//** @@ -629,25 +631,11 @@ void setDialysateFlowData( F32 flowRate ) { dgDialysateFlowRateMlMin = flowRate; - setDialysateFlowDataFreshFlag( TRUE ); // sets freshness status + dgDialysateFlowDataFreshFlag = TRUE; } /*********************************************************************//** * @brief - * The setDialysateFlowDataFreshFlag function sets the dialysate flow - * data freshness flag. - * @details Inputs: none - * @details Outputs: dgDialysateFlowDataFreshFlag - * @param flowRateFreshFlag to set - * @return none - *************************************************************************/ -void setDialysateFlowDataFreshFlag( BOOL flowRateFreshFlag ) -{ - dgDialysateFlowDataFreshFlag = flowRateFreshFlag; -} - -/*********************************************************************//** - * @brief * The setNewLoadCellReadings function sets the latest DG reservoir load cell * readings sent by the DG (in g or mL). New readings are expected once * every 100 ms.