Index: firmware/App/Controllers/DialInFlow.c =================================================================== diff -u -ra74a66caeda4a3a9b831d9f7c698553fa6fa0882 -r1ebbe403d260d9f65695c13d6dbafbe1a93cfdde --- firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision a74a66caeda4a3a9b831d9f7c698553fa6fa0882) +++ firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 1ebbe403d260d9f65695c13d6dbafbe1a93cfdde) @@ -91,7 +91,7 @@ #define DIP_MOTOR_RPM_TO_PWM_DC_FACTOR 0.000193 ///< ~52 BP motor RPM = 1% PWM duty cycle #define DIP_CURRENT_ADC_TO_MA_FACTOR 3.002 ///< Conversion factor from ADC counts to mA for dialIn pump motor. -#define DIP_REV_PER_LITER 150.0 ///< Rotor revolutions per liter. +#define DIP_REV_PER_LITER 144.7 ///< Rotor revolutions per liter. /// Macro converts flow rate to motor RPM. #define DIP_ML_PER_MIN_TO_PUMP_RPM_FACTOR ( DIP_REV_PER_LITER / ML_PER_LITER ) #define DIP_GEAR_RATIO 32.0 ///< DialIn pump motor to dialIn pump gear ratio. @@ -201,7 +201,9 @@ static U08 lastDialysateFlowFastPacketReadCtr = 0; ///< Previous read counter for the dialysate flow fast packets. static U08 lastDialysateFlowSlowPacketReadCtr = 0; ///< Previous read counter for the dialysate flow slow packets. static U08 lastDialInPumpDirectionCount = 0; ///< Previous pump direction error count reported by FPGA. +#ifndef DISABLE_PUMP_FLOW_CHECKS static U08 lastDialysateFlowCommErrorCount = 0; ///< Previous DPi flow sensor comm error count. +#endif static HD_FLOW_SENSORS_CAL_RECORD_T dialysateFlowCalRecord; ///< Dialysate flow sensor calibration record. // ********** private function prototypes ********** @@ -493,8 +495,8 @@ checkDialInPumpRotor(); // Check flow sensor signal strength checkDialInFlowSensorSignalStrength(); - } - + } + // Publish dialIn flow data on interval publishDialInFlowData(); }