Index: firmware/App/Controllers/SyringePump.c =================================================================== diff -u -r9a824381a8c77e309b943bedcccc8df323bb26e3 -r80589ff9252c890a33e03a8fb000971e448de28c --- firmware/App/Controllers/SyringePump.c (.../SyringePump.c) (revision 9a824381a8c77e309b943bedcccc8df323bb26e3) +++ firmware/App/Controllers/SyringePump.c (.../SyringePump.c) (revision 80589ff9252c890a33e03a8fb000971e448de28c) @@ -1592,9 +1592,10 @@ { BOOL result = FALSE; // Return FALSE if no occlusion is detected F32 forceAtEndOfPriming = getSyringePumpForceV(); // Read the force sensor at the end of the priming - F32 forceDelta = forceAtEndOfPriming - forceAtEndOfSeek; // Occlusion is detected if force at end of prime is > than force at end of seek by ~ 0.5 volts + F32 forceDelta = forceAtEndOfPriming - forceAtEndOfSeek; // Occlusion is detected if force at end of prime is > than force at end of seek by 0.5 volts or more + BOOL occlusionDetected = ( forceDelta >= SYRINGE_FORCE_OCCLUSION_DIFF_V ? TRUE : FALSE ); - if ( TRUE == isPersistentAlarmTriggered( ALARM_ID_HD_SYRINGE_PUMP_OCCLUSION, ( forceDelta >= SYRINGE_FORCE_OCCLUSION_DIFF_V ) ) ) + if ( TRUE == isPersistentAlarmTriggered( ALARM_ID_HD_SYRINGE_PUMP_OCCLUSION, occlusionDetected ) ) { SET_ALARM_WITH_2_F32_DATA( ALARM_ID_HD_SYRINGE_PUMP_OCCLUSION, forceAtEndOfSeek, forceAtEndOfPriming ) // reuse this alarm after prime forceAtEndOfSeek = 0.0; // reset this value in case we want to prime again