Index: firmware/App/Controllers/BloodLeak.c =================================================================== diff -u -rc4597167d133bcafd1a0576d0f7c53f430d98d4b -r974df7d9f041fac87788c400220e9e049f25ea7e --- firmware/App/Controllers/BloodLeak.c (.../BloodLeak.c) (revision c4597167d133bcafd1a0576d0f7c53f430d98d4b) +++ firmware/App/Controllers/BloodLeak.c (.../BloodLeak.c) (revision 974df7d9f041fac87788c400220e9e049f25ea7e) @@ -23,6 +23,7 @@ #include "FPGA.h" #include "NVDataMgmtHDRecords.h" #include "OperationModes.h" +#include "PersistentAlarm.h" #include "SystemCommMessages.h" #include "TaskPriority.h" #include "Timers.h" @@ -247,6 +248,9 @@ // Initialize the blood leak embedded mode command sequence memset( bloodLeakEmbModeCmdSeq, 0x0, BLOOD_LEAK_EMB_MODE_CMD_SEQ_LENGTH ); + initFPGAPersistentAlarm( FPGA_PERS_ERROR_BLOOD_LEAK_SENSOR, ALARM_ID_HD_BLOOD_LEAK_FPGA_FAULT, + BLOOD_LEAK_FPGA_ERROR_TIMEOUT_MS, BLOOD_LEAK_FPGA_ERROR_TIMEOUT_MS ); + // Enqueue the commands to set the embedded mode and request the set point of the blood leak sensor enqueueEmbModeCmd( CS_EMB_MODE_CMD ); enqueueEmbModeCmd( D_EMB_MODE_CMD ); @@ -296,6 +300,8 @@ break; } + checkFPGAPersistentErrorCountAlarm( FPGA_PERS_ERROR_BLOOD_LEAK_SENSOR, getFPGABloodLeakRxErrorCount() ); + // Publish blood leak data if due publishBloodLeakData(); } Index: firmware/App/Controllers/PresOccl.c =================================================================== diff -u -rc4597167d133bcafd1a0576d0f7c53f430d98d4b -r974df7d9f041fac87788c400220e9e049f25ea7e --- firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision c4597167d133bcafd1a0576d0f7c53f430d98d4b) +++ firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision 974df7d9f041fac87788c400220e9e049f25ea7e) @@ -411,7 +411,7 @@ U08 artPresStatus = (U08)( fpgaArtPres >> SHIFT_14_BITS ); checkFPGAPersistentAlarms( FPGA_PERS_ERROR_ARTERIAL_PRESSURE_SENSOR, artErrorCtr, artReadCtr ); - checkFPGAPersistentAlarms( FPGA_PERS_ERROR_VENOUS_PRESSURE_SESNOR, venReadCtr, venReadCtr ); + //checkFPGAPersistentAlarms( FPGA_PERS_ERROR_VENOUS_PRESSURE_SESNOR, venReadCtr, venReadCtr ); // TODO investigate this with Noe if ( ARTERIAL_PRESSURE_NORMAL_OP == artPresStatus ) {