Index: firmware/App/Controllers/PresOccl.c =================================================================== diff -u -r1240b612f790f931825aba86ec37f37eccce9336 -rf5f00981805e265ce63058f650d784f06db4d188 --- firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision 1240b612f790f931825aba86ec37f37eccce9336) +++ firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision f5f00981805e265ce63058f650d784f06db4d188) @@ -22,7 +22,8 @@ #include "OperationModes.h" #include "PersistentAlarm.h" #include "SystemCommMessages.h" -#include "TaskGeneral.h" +#include "TaskGeneral.h" +#include "Temperatures.h" #include "Timers.h" /** @@ -299,7 +300,7 @@ U16 venPres = fpgaVenPres & 0x3FFF; // 14-bit data U08 venPresStatus = (U08)( fpgaVenPres >> 14 ); // High 2 bits is status code for venous pressure F32 venPresPSI; - F32 venTemp = getFPGAVenousPressureTemperature(); + F32 venTemp = getTemperatureValue( TEMPSENSOR_VENOUS_PRESSURE_SENSOR ); U08 venReadCtr = getFPGAVenousPressureReadCounter(); // TODO - any filtering required??? @@ -362,6 +363,7 @@ U08 dpiErrorCtr = getFPGADialInPumpOcclusionErrorCounter(); U08 dpoErrorCtr = getFPGADialOutPumpOcclusionErrorCounter(); +#ifndef DISABLE_PRESSURE_CHECKS // Check for sensor errors if ( TRUE == isPersistentAlarmTriggered( ALARM_ID_HD_BP_OCCLUSION_SENSOR_ERROR, ( bpErrorCtr != lastBPErrorCtr ) ) ) { @@ -389,6 +391,7 @@ { activateAlarmNoData( ALARM_ID_HD_DPO_OCCLUSION_READ_TIMEOUT_ERROR ); } +#endif // Record occlusion sensor readings bloodPumpOcclusion.data = (U32)getFPGABloodPumpOcclusion();