Index: firmware/App/Controllers/DialysateFlow.c =================================================================== diff -u -r59543c15efd37e0e23269768df9a1cb9b6a3d296 -r49a26c6014d1769d0d63ce9d923eb02f8653aa71 --- firmware/App/Controllers/DialysateFlow.c (.../DialysateFlow.c) (revision 59543c15efd37e0e23269768df9a1cb9b6a3d296) +++ firmware/App/Controllers/DialysateFlow.c (.../DialysateFlow.c) (revision 49a26c6014d1769d0d63ce9d923eb02f8653aa71) @@ -54,6 +54,7 @@ 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 ********** @@ -92,6 +93,7 @@ // 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() ) @@ -182,7 +184,7 @@ { DIALYSATE_FLOW_METER_DATA_T dialysateFlowData; - dialysateFlowData.measuredDialysateFlowRate = getMeasuredDialysateFlowRate(); + dialysateFlowData.measuredDialysateFlowRate = tempFlow; //getMeasuredDialysateFlowRate(); broadcastDialysateFlowData( &dialysateFlowData ); dialysateFlowDataPublicationTimerCounter = 0; }