Index: firmware/App/Controllers/Bubble.c =================================================================== diff -u -rf63f470a02e5584d107becc6d6ffcacaac88b19e -rcd5be724d5a3ba7457e761191d82f278654d7f5c --- firmware/App/Controllers/Bubble.c (.../Bubble.c) (revision f63f470a02e5584d107becc6d6ffcacaac88b19e) +++ firmware/App/Controllers/Bubble.c (.../Bubble.c) (revision cd5be724d5a3ba7457e761191d82f278654d7f5c) @@ -1,14 +1,14 @@ /************************************************************************** * -* Copyright (c) 2021-2023 Diality Inc. - All Rights Reserved. +* Copyright (c) 2021-2024 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * @file Bubble.c * * @author (last) Dara Navaei -* @date (last) 20-Apr-2023 +* @date (last) 22-Jun-2023 * * @author (original) Peman Montazemi * @date (original) 06-May-2021 @@ -55,7 +55,7 @@ /// Interval (in ms) at which to publish air bubble detectors data on CAN bus. static OVERRIDE_U32_T bubblesDataPublishInterval = { BUBBLE_PUB_INTERVAL, BUBBLE_PUB_INTERVAL, 0, 0 }; -static U32 bubblesDataPublicationTimerCounter = 0; ///< Timer counter used to schedule air bubble detectors data publication to CAN bus. +static U32 bubblesDataPublicationTimerCounter; ///< Timer counter used to schedule air bubble detectors data publication to CAN bus. // ********** private function prototypes ********** @@ -75,7 +75,7 @@ { BUBBLES_T bubble; - for (bubble = ADV; bubble < NUM_OF_BUBBLES; bubble++) + for ( bubble = ADV; bubble < NUM_OF_BUBBLES; bubble++ ) { bubblesState[ bubble ] = BUBBLE_NORMAL_STATE; bubblesStatus[ bubble ].data = BUBBLE_NOT_DETECTED; @@ -157,6 +157,19 @@ /*********************************************************************//** * @brief + * The getVenousBubbleDetectionEnabled function returns the state of the + * venous bubble detection enable flag. + * @details Inputs: bubbleDetectionEnabled[] + * @details Outputs: none + * @return bubbleDetectionEnabled[] + *************************************************************************/ +BOOL getVenousBubbleDetectionEnabled( void ) +{ + return bubbleDetectionEnabled[ ADV ]; +} + +/*********************************************************************//** + * @brief * The getBubbleStatus function gets the current reading for a given air bubble * detector. * @details Inputs: bubblesStatus