Index: firmware/App/Controllers/PresOccl.c =================================================================== diff -u -r23ce6838f032dc4ee298a2c887edae09aec28857 -r2c8547abb99803d8e09918db0e4c66d45c9a15ad --- firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision 23ce6838f032dc4ee298a2c887edae09aec28857) +++ firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision 2c8547abb99803d8e09918db0e4c66d45c9a15ad) @@ -502,7 +502,7 @@ // Check arterial pressure during treatment mode against either user set limits or fixed max limits depending on treatment state if ( ( MODE_TREA == getCurrentOperationMode() ) && ( ( ( TREATMENT_DIALYSIS_STATE == txState ) && ( DIALYSIS_UF_STATE == getDialysisState() ) ) || - ( ( TREATMENT_STOP_STATE == txState ) && ( TRUE == isBloodPumpRunning() ) ) ) ) + ( ( TREATMENT_STOP_STATE == txState ) && ( isBloodPumpRunning() != FALSE ) ) ) ) { BOOL artPresLow, artPresHigh; @@ -520,7 +520,7 @@ SET_ALARM_WITH_2_F32_DATA( ALARM_ID_HD_ARTERIAL_PRESSURE_HIGH, artPres, (F32)currentArterialMaxLimit ); } } - else if ( ( MODE_TREA == getCurrentOperationMode() ) && ( TRUE == isBloodPumpRunning() ) ) // All treatment states not covered by the if above + else if ( ( MODE_TREA == getCurrentOperationMode() ) && ( isBloodPumpRunning() != FALSE ) ) // All treatment states not covered by the if above { BOOL artPresLow = ( artPres < ARTERIAL_PRESSURE_LIMIT_MIN_MMHG ? TRUE : FALSE ); BOOL artPresHigh = ( artPres > ARTERIAL_PRESSURE_LIMIT_MAX_MMHG ? TRUE : FALSE ); @@ -570,7 +570,7 @@ // Check venous pressure during treatment mode against either user set limits or fixed max limits depending on treatment state if ( ( MODE_TREA == getCurrentOperationMode() ) && ( ( ( TREATMENT_DIALYSIS_STATE == txState ) && ( DIALYSIS_UF_STATE == getDialysisState() ) && ( TRUE == didTimeout( venPressureLimitDelayStart, VENOUS_PRESSURE_LIMIT_DELAY_MS ) ) ) || - ( ( TREATMENT_STOP_STATE == txState ) && ( TRUE == isBloodPumpRunning() ) ) ) ) + ( ( TREATMENT_STOP_STATE == txState ) && ( isBloodPumpRunning() != FALSE ) ) ) ) { BOOL venPresLow, venPresHigh; @@ -595,7 +595,7 @@ SET_ALARM_WITH_2_F32_DATA( ALARM_ID_HD_VENOUS_PRESSURE_HIGH, venPres, currentVenousMaxLimit ); } } - else if ( ( MODE_TREA == getCurrentOperationMode() ) && ( TRUE == isBloodPumpRunning() ) ) // All treatment states not covered by the if statement above + else if ( ( MODE_TREA == getCurrentOperationMode() ) && ( isBloodPumpRunning() != FALSE ) ) // All treatment states not covered by the if statement above { BOOL venPresLow = ( venPres < VENOUS_PRESSURE_LIMIT_MIN_MMHG ? TRUE : FALSE ); BOOL venPresHigh = ( venPres > VENOUS_PRESSURE_LIMIT_MAX_MMHG ? TRUE : FALSE );