Index: firmware/App/Controllers/PresOccl.c =================================================================== diff -u -r974df7d9f041fac87788c400220e9e049f25ea7e -r1cfa9cbcd9ae84a8df767c7777ff3beca067aaa8 --- firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision 974df7d9f041fac87788c400220e9e049f25ea7e) +++ firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision 1cfa9cbcd9ae84a8df767c7777ff3beca067aaa8) @@ -71,6 +71,7 @@ #define PSI_TO_MMHG ( 51.7149F ) ///< Conversion factor for converting PSI to mmHg. +// The new arterial pressure sensor is the same as the venous pressure sensor #define VENOUS_PRESSURE_NORMAL_OP 0 ///< Venous pressure status bits indicate normal operation. #define VENOUS_PRESSURE_CMD_MODE 1 ///< Venous pressure status bits indicate sensor in command mode. #define VENOUS_PRESSURE_STALE_DATA 2 ///< Venous pressure status bits indicate data is stale (no new data since last fpga read). @@ -608,6 +609,15 @@ U32 bpOccl = getMeasuredBloodPumpOcclusion(); BOOL outOfRange = ( bpOccl < MIN_OCCLUSION_COUNTS || bpOccl > MAX_OCCLUSION_COUNTS ? TRUE : FALSE ); +#ifndef _RELEASE + if( getSoftwareConfigStatus( SW_CONFIG_ENABLE_V3_SYSTEM ) == SW_CONFIG_ENABLE_VALUE) + { + U32 minOcclusionCountV3 = 1500; + outOfRange = (( bpOccl < minOcclusionCountV3 || bpOccl > MAX_OCCLUSION_COUNTS ? TRUE : FALSE )); + } +#endif + + #ifndef _RELEASE_ if ( getSoftwareConfigStatus( SW_CONFIG_DISABLE_PRESSURE_CHECKS ) != SW_CONFIG_ENABLE_VALUE ) #endif @@ -628,7 +638,7 @@ // and setOcclusionInstallLevel has been called. if ( MODE_PRET == getCurrentOperationMode() ) { - if ( getPreTreatmentSubState() > HD_PRE_TREATMENT_CART_INSTALL_STATE && getDrySelfTestsState() > DRY_SELF_TESTS_START_STATE ) + if( getPreTreatmentSubState() > HD_PRE_TREATMENT_CART_INSTALL_STATE && getDrySelfTestsState() > DRY_SELF_TESTS_START_STATE ) { // Check for occlusion if ( bpOccl > ( OCCLUSION_THRESHOLD_OFFSET + bloodPumpOcclusionAfterCartridgeInstall ) ) @@ -638,7 +648,6 @@ } } } - // Check for occlusion in Treatment modes where pumps are moving else if ( MODE_TREA == getCurrentOperationMode() ) {