Index: firmware/App/Monitors/Bubbles.c =================================================================== diff -u -r395522dffef1348e176564925656012f529c1910 -rca46a119bf717b09ae9d02f36382f75576ca9a5e --- firmware/App/Monitors/Bubbles.c (.../Bubbles.c) (revision 395522dffef1348e176564925656012f529c1910) +++ firmware/App/Monitors/Bubbles.c (.../Bubbles.c) (revision ca46a119bf717b09ae9d02f36382f75576ca9a5e) @@ -91,7 +91,7 @@ bubblesDataPublishInterval.ovData = BUBBLE_PUB_INTERVAL; bubblesDataPublishInterval.ovInitData = 0; bubblesDataPublishInterval.override = OVERRIDE_RESET; - bubblesDataPublicationTimerCounter = DATA_PUBLISH_COUNTER_START_COUNT; + bubblesDataPublicationTimerCounter = DATA_PUBLISH_COUNTER_START_COUNT; } /*********************************************************************//** @@ -221,7 +221,7 @@ #endif { // Check for venous bubble alarm if enabled. - if ( ( BUBBLE_DETECTED == getBubbleDetectedState( bubble ) )) + if ( BUBBLE_DETECTED == getBubbleDetectedState( bubble ) ) { activateAlarmNoData( ALARM_ID_TD_VENOUS_BUBBLE_DETECTED ); } @@ -397,4 +397,32 @@ return result; } +/*********************************************************************//** + * @brief + * The testEnableVenousBubbleAlarm enable/disable venous bubble alarm triggering. + * @details \b Inputs: none + * @details \b Outputs: bubbleDetectionEnabled[] + * @param message Command message from Dialin which includes enable flag. + * @return TRUE if request is successful, FALSE if not + *************************************************************************/ +BOOL testEnableVenousBubbleAlarm( MESSAGE_T *message ) +{ + U32 enable = 0; + BOOL enableStatus = FALSE; + BOOL result = FALSE; + + if ( sizeof( U32 ) == message->hdr.payloadLen ) + { + memcpy( &enable, message->payload, sizeof( U32 ) ); + + enableStatus = ( 0 != enable ) ? TRUE : FALSE ; + + setVenousBubbleDetectionEnabled( H18_BBLD, enableStatus ); + + result = TRUE; + } + + return result; +} + /**@}*/