Index: firmware/App/Controllers/PresOccl.c =================================================================== diff -u -ref6283257df7c1f993d58fb934da57ea3e0a7067 -r427b37ad929a8d88b5fcb9ae21a4f4146ffd2fef --- firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision ef6283257df7c1f993d58fb934da57ea3e0a7067) +++ firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision 427b37ad929a8d88b5fcb9ae21a4f4146ffd2fef) @@ -7,8 +7,8 @@ * * @file PresOccl.c * -* @author (last) Dara Navaei -* @date (last) 12-Oct-2022 +* @author (last) Michael Garthwaite +* @date (last) 21-Oct-2022 * * @author (original) Sean * @date (original) 15-Jan-2020 @@ -107,7 +107,10 @@ #define SHIFT_14_BITS 14 ///< Shift 14 bits. #define PRES_SENSORS_FPGA_ERROR_TIMEOUT_MS ( 2 * MS_PER_SECOND ) ///< Occlusion sensor FPGA error timeout in milliseconds. - + +#ifndef _RELEASE_ +#define MIN_OCCLUSION_COUNTS_V3 1500 ///< Minimum occlusion count for v3 hardware +#endif /// Defined states for the pressure and occlusion monitor state machine. typedef enum PresOccl_States { @@ -609,6 +612,14 @@ BOOL outOfRange = ( bpOccl < MIN_OCCLUSION_COUNTS || bpOccl > MAX_OCCLUSION_COUNTS ? TRUE : FALSE ); #ifndef _RELEASE_ + if( HW_CONFIG_BETA == getHardwareConfigStatus() ) + { + outOfRange = (( bpOccl < MIN_OCCLUSION_COUNTS_V3 || bpOccl > MAX_OCCLUSION_COUNTS ? TRUE : FALSE )); + } +#endif + + +#ifndef _RELEASE_ if ( getSoftwareConfigStatus( SW_CONFIG_DISABLE_PRESSURE_CHECKS ) != SW_CONFIG_ENABLE_VALUE ) #endif {