Index: firmware/App/Services/FpgaTD.c =================================================================== diff -u -rbd37ce75271151436de0bb6de9f75123d8251396 -rf45f5b29e98a1ae3ec6085b4532a29082797daa8 --- firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision bd37ce75271151436de0bb6de9f75123d8251396) +++ firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision f45f5b29e98a1ae3ec6085b4532a29082797daa8) @@ -46,7 +46,7 @@ #define MIN_POWER_ON_TIME_FOR_COMM_FAILS ( 1 * MS_PER_SECOND ) ///< Allow FPGA comm errors for first second after power-up #define FPGA_BP_ENABLE_BIT_MASK 0x01 ///< Bit mask for enabling the blood pump. -#define FPGA_BP_DIRECTION_FWD_BIT_MASK 0x02 ///< Bit mask for setting the blood pump direction. +#define FPGA_BP_DIRECTION_REV_BIT_MASK 0x02 ///< Bit mask for setting the blood pump direction. #define FPGA_BP_HOME_BIT_MASK 0x04 ///< Bit mask for requesting a blood pump home operation. #define FPGA_VBT_OPEN_BIT_MASK 0x01 ///< Bit mask for setting VBT valve position to open. @@ -439,11 +439,11 @@ { if ( MOTOR_DIR_REVERSE == dir ) { - fpgaActuatorSetPoints.BPControl &= ~((U08)FPGA_BP_DIRECTION_FWD_BIT_MASK); + fpgaActuatorSetPoints.BPControl |= FPGA_BP_DIRECTION_REV_BIT_MASK; } else { - fpgaActuatorSetPoints.BPControl |= FPGA_BP_DIRECTION_FWD_BIT_MASK; + fpgaActuatorSetPoints.BPControl &= ~((U08)FPGA_BP_DIRECTION_REV_BIT_MASK); } }