Index: firmware/App/Controllers/DialInFlow.c =================================================================== diff -u -r5e2d30dcbd02f5eb737aee7ec45c63d868daf252 -r99031535f5bc95d882f982b8f4cc5b74b825cf6a --- firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 5e2d30dcbd02f5eb737aee7ec45c63d868daf252) +++ firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 99031535f5bc95d882f982b8f4cc5b74b825cf6a) @@ -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 @@ -1020,7 +1020,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 );