Index: firmware/App/Controllers/DialOutFlow.c =================================================================== diff -u -r5e2d30dcbd02f5eb737aee7ec45c63d868daf252 -r99031535f5bc95d882f982b8f4cc5b74b825cf6a --- firmware/App/Controllers/DialOutFlow.c (.../DialOutFlow.c) (revision 5e2d30dcbd02f5eb737aee7ec45c63d868daf252) +++ firmware/App/Controllers/DialOutFlow.c (.../DialOutFlow.c) (revision 99031535f5bc95d882f982b8f4cc5b74b825cf6a) @@ -233,7 +233,7 @@ dopMotorSpeedCalcIdx = 0; for ( i = 0; i < DOP_SPEED_CALC_BUFFER__LEN; i++ ) { - dopLastMotorHallSensorCounts[ i ] = 0; + dopLastMotorHallSensorCounts[ i ] = getFPGADialOutPumpHallSensorCount(); } dopMeasuredRate = 0.0; @@ -933,7 +933,9 @@ if ( lastDialOutPumpDirectionCount != dirErrorCnt ) { lastDialOutPumpDirectionCount = dirErrorCnt; +#ifndef DISABLE_PUMP_DIRECTION_CHECKS SET_ALARM_WITH_1_U32_DATA( ALARM_ID_HD_PUMP_DIRECTION_STATUS_ERROR, (U32)HD_PUMP_DIALYSATE_OUTLET_PUMP ) +#endif } dopMCDir = ( getMeasuredDialOutPumpMCSpeed() >= 0.0 ? MOTOR_DIR_FORWARD : MOTOR_DIR_REVERSE );