Index: firmware/App/Controllers/DialInFlow.c =================================================================== diff -u -r667feab319b14681a0330a715da7a1ba930b518d -r15f9827c863812cfd1f891d22342103fe9a72abc --- firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 667feab319b14681a0330a715da7a1ba930b518d) +++ firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 15f9827c863812cfd1f891d22342103fe9a72abc) @@ -237,7 +237,7 @@ dipMotorSpeedCalcIdx = 0; for ( i = 0; i < DIP_SPEED_CALC_BUFFER_LEN; i++ ) { - dipLastMotorHallSensorCounts[ i ] = 0; + dipLastMotorHallSensorCounts[ i ] = getFPGADialInPumpHallSensorCount(); } // Initialize dialysate inlet flow PI controller @@ -1008,7 +1008,9 @@ ( getSoftwareConfigStatus( SW_CONFIG_DISABLE_PUMP_DIRECTION_CHECKS ) != SW_CONFIG_ENABLE_VALUE ) ) { lastDialInPumpDirectionCount = dirErrorCnt; +#ifndef DISABLE_PUMP_DIRECTION_CHECKS SET_ALARM_WITH_1_U32_DATA( ALARM_ID_HD_PUMP_DIRECTION_STATUS_ERROR, (U32)HD_PUMP_DIALYSATE_INLET_PUMP ) +#endif } dipMCDir = ( getMeasuredDialInPumpMCSpeed() >= 0.0 ? MOTOR_DIR_FORWARD : MOTOR_DIR_REVERSE );