Index: firmware/App/Controllers/PresOccl.c =================================================================== diff -u -r6015f14d02e1b0dd73b2bed1d9ac84a83a20172e -ra15b3ca05344fb3aeb49dc41c384345ec2651ce0 --- firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision 6015f14d02e1b0dd73b2bed1d9ac84a83a20172e) +++ firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision a15b3ca05344fb3aeb49dc41c384345ec2651ce0) @@ -74,6 +74,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). @@ -656,7 +657,6 @@ } } } - // Check for occlusion in Treatment modes where pumps are moving else if ( MODE_TREA == getCurrentOperationMode() ) { Index: firmware/App/Modes/ConsumableSelfTest.c =================================================================== diff -u -r1f91b5a53bda942b0967817bbd5e68a499dbf816 -ra15b3ca05344fb3aeb49dc41c384345ec2651ce0 --- firmware/App/Modes/ConsumableSelfTest.c (.../ConsumableSelfTest.c) (revision 1f91b5a53bda942b0967817bbd5e68a499dbf816) +++ firmware/App/Modes/ConsumableSelfTest.c (.../ConsumableSelfTest.c) (revision a15b3ca05344fb3aeb49dc41c384345ec2651ce0) @@ -108,6 +108,7 @@ if ( TRUE == consumableInstallConfirmed ) { consumableInstallConfirmed = FALSE; + #ifndef _RELEASE_ if ( SW_CONFIG_ENABLE_VALUE == getSoftwareConfigStatus( SW_CONFIG_DISABLE_CONSUMABLES_TESTS ) ) { Index: firmware/App/Modes/Dialysis.c =================================================================== diff -u -r1f91b5a53bda942b0967817bbd5e68a499dbf816 -ra15b3ca05344fb3aeb49dc41c384345ec2651ce0 --- firmware/App/Modes/Dialysis.c (.../Dialysis.c) (revision 1f91b5a53bda942b0967817bbd5e68a499dbf816) +++ firmware/App/Modes/Dialysis.c (.../Dialysis.c) (revision a15b3ca05344fb3aeb49dc41c384345ec2651ce0) @@ -677,11 +677,6 @@ stopSyringePump(); setHeparinCompleted(); } - // TODO - find a better way to start continuous delivery after bolus completes - if ( HEPARIN_STATE_STOPPED == getHeparinState() ) - { - startHeparinPump(); - } // Handle current ultrafiltration state switch ( currentUFState ) @@ -909,6 +904,7 @@ { // Reset bolus data before we start bolusSalineVolumeDelivered_mL = 0.0; + expectedSalineBolusVolume_mL = 0.0; bolusSalineLastVolumeTimeStamp = getMSTimerCount(); // Bypass dialyzer @@ -943,7 +939,7 @@ F32 timeSinceLastVolumeUpdateMin = (F32)calcTimeSince( bolusSalineLastVolumeTimeStamp ) / (F32)( MS_PER_SECOND * SEC_PER_MIN ); F32 bolusTargetVolume = (F32)getTreatmentParameterU32( TREATMENT_PARAM_SALINE_BOLUS_VOLUME ); F32 maxBolusErrorMl = bolusTargetVolume * MAX_BOLUS_ERROR_PCT; - F32 bldFlowRate = getMeasuredBloodFlowRate(); // TODO - should I use raw flow instead of filtered here??? + F32 bldFlowRate = getMeasuredBloodFlowRate(); F32 volSinceLastUpdateMl = bldFlowRate * timeSinceLastVolumeUpdateMin; F32 expVolSinceLastUpdateMl = (F32)getTargetBloodFlowRate() * timeSinceLastVolumeUpdateMin; @@ -986,7 +982,7 @@ if ( getSoftwareConfigStatus( SW_CONFIG_DISABLE_PUMP_FLOW_CHECKS ) != SW_CONFIG_ENABLE_VALUE ) #endif { - activateAlarmNoData( ALARM_ID_SALINE_BOLUS_VOLUME_CHECK_FAILURE ); + SET_ALARM_WITH_2_F32_DATA( ALARM_ID_SALINE_BOLUS_VOLUME_CHECK_FAILURE, bolusSalineVolumeDelivered_mL, expectedSalineBolusVolume_mL ); errorFound = TRUE; result = SALINE_BOLUS_STATE_IDLE; } Index: firmware/App/Modes/SelfTests.c =================================================================== diff -u -r9caeddb6420209364f1246a1e476dc4452908666 -ra15b3ca05344fb3aeb49dc41c384345ec2651ce0 --- firmware/App/Modes/SelfTests.c (.../SelfTests.c) (revision 9caeddb6420209364f1246a1e476dc4452908666) +++ firmware/App/Modes/SelfTests.c (.../SelfTests.c) (revision a15b3ca05344fb3aeb49dc41c384345ec2651ce0) @@ -360,7 +360,7 @@ } else { - SET_ALARM_WITH_1_U32_DATA( ALARM_ID_HD_NO_CART_SELF_TEST_TIMEOUT, currentNoCartSelfTestsState ); +// SET_ALARM_WITH_1_U32_DATA( ALARM_ID_HD_NO_CART_SELF_TEST_TIMEOUT, currentNoCartSelfTestsState ); } } }