Index: firmware/App/Controllers/BloodFlow.c =================================================================== diff -u -r2a3a47ca90ad19851a30c52f6999a56d5f578783 -re5006f5263e8540e730dd802016fef5973ecea4c --- firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 2a3a47ca90ad19851a30c52f6999a56d5f578783) +++ firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision e5006f5263e8540e730dd802016fef5973ecea4c) @@ -240,7 +240,7 @@ bpMotorSpeedCalcIdx = 0; for ( i = 0; i < BP_SPEED_CALC_BUFFER_LEN; i++ ) { - bpLastMotorHallSensorCounts[ i ] = 0; + bpLastMotorHallSensorCounts[ i ] = getFPGABloodPumpHallSensorCount(); } resetBloodPumpRotorCount(); @@ -1080,7 +1080,9 @@ ( getSoftwareConfigStatus( SW_CONFIG_DISABLE_PUMP_DIRECTION_CHECKS ) != SW_CONFIG_ENABLE_VALUE ) ) { lastBloodPumpDirectionCount = dirErrorCnt; +#ifndef DISABLE_PUMP_DIRECTION_CHECKS SET_ALARM_WITH_1_U32_DATA( ALARM_ID_HD_PUMP_DIRECTION_STATUS_ERROR, (U32)HD_PUMP_BLOOD_PUMP ) +#endif } bpMCDir = ( getMeasuredBloodPumpMCSpeed() >= 0.0 ? MOTOR_DIR_FORWARD : MOTOR_DIR_REVERSE ); bpDir = ( getMeasuredBloodPumpSpeed() >= 0.0 ? MOTOR_DIR_FORWARD : MOTOR_DIR_REVERSE );