Index: firmware/App/Controllers/DialysateFlow.c =================================================================== diff -u -r49a26c6014d1769d0d63ce9d923eb02f8653aa71 -r66c7171351e2f3e489008ace7ab18178b71e35ce --- firmware/App/Controllers/DialysateFlow.c (.../DialysateFlow.c) (revision 49a26c6014d1769d0d63ce9d923eb02f8653aa71) +++ firmware/App/Controllers/DialysateFlow.c (.../DialysateFlow.c) (revision 66c7171351e2f3e489008ace7ab18178b71e35ce) @@ -54,7 +54,6 @@ static S32 measuredFlowReadingsSum = 0; ///< Raw flow reading sums for averaging. static U32 flowFilterCounter = 0; ///< Flow filtering counter. static DG_FLOW_SENSORS_CAL_RECORD_T flowSensorsCalRecord; ///< Flow sensors calibration record. -static F32 tempFlow = 0.0; // TODO to be removed when raw data has been collected // ********** private function prototypes ********** @@ -93,7 +92,6 @@ // Update sum for flow average calculation measuredFlowReadingsSum += (S32)dialysateFlowReading; - tempFlow = DIALYSATE_FLOW_ADC_TO_LPM_FACTOR / (F32)dialysateFlowReading; // raw L/min // Check if a new calibration is available if ( TRUE == isNewCalibrationRecordAvailable() ) @@ -184,7 +182,7 @@ { DIALYSATE_FLOW_METER_DATA_T dialysateFlowData; - dialysateFlowData.measuredDialysateFlowRate = tempFlow; //getMeasuredDialysateFlowRate(); + dialysateFlowData.measuredDialysateFlowRate = getMeasuredDialysateFlowRate(); broadcastDialysateFlowData( &dialysateFlowData ); dialysateFlowDataPublicationTimerCounter = 0; }