Index: firmware/App/Services/FPGA.c =================================================================== diff -u -r55cc500c07e3bb06926014c47553aa1419559407 -rcaaba168f0caee9420acc13ce5287451483a58cd --- firmware/App/Services/FPGA.c (.../FPGA.c) (revision 55cc500c07e3bb06926014c47553aa1419559407) +++ firmware/App/Services/FPGA.c (.../FPGA.c) (revision caaba168f0caee9420acc13ce5287451483a58cd) @@ -1736,7 +1736,7 @@ *************************************************************************/ BOOL noFPGABubbleDetected( U32 bubble ) { - U16 noFPGABubbleDetected; + U16 noFPGABubbleDetected = TRUE; if ( bubble == ADA ) { @@ -1756,34 +1756,6 @@ /*********************************************************************//** * @brief - * The FPGABubbleSelfTestDetected function returns TRUE if air bubble self-test - * has been detected and FALSE if no air bubble self-test has been detected. - * @details Inputs: fpgaSensorReadings - * @details Outputs: none - * @return FPGABubbleSelfTestDetected - *************************************************************************/ -BOOL FPGABubbleSelfTestDetected( U32 bubble ) -{ - U16 FPGABubbleSelfTestDetected; - - if ( bubble == ADA ) - { - FPGABubbleSelfTestDetected = fpgaSensorReadings.fpgaGPIO & FPGA_ADA_BUBBLE_STATUS_MASK; - } - else if ( bubble == ADV ) - { - FPGABubbleSelfTestDetected = fpgaSensorReadings.fpgaGPIO & FPGA_ADV_BUBBLE_STATUS_MASK; - } - else - { - // TODO: Should never reach here - } - - return ( 0 == FPGABubbleSelfTestDetected ? FALSE : TRUE ); -} - -/*********************************************************************//** - * @brief * The setFPGABubbleSelfTest function sets the given air bubble detector into * self-test mode via the FPGA. * @details Inputs: none Index: firmware/App/Services/FPGA.h =================================================================== diff -u -r3d30c9829d316b8c5e632c0201a59c8d14b3486e -rcaaba168f0caee9420acc13ce5287451483a58cd --- firmware/App/Services/FPGA.h (.../FPGA.h) (revision 3d30c9829d316b8c5e632c0201a59c8d14b3486e) +++ firmware/App/Services/FPGA.h (.../FPGA.h) (revision caaba168f0caee9420acc13ce5287451483a58cd) @@ -113,7 +113,6 @@ void clearFPGABloodLeakSelfTest( void ); BOOL noFPGABubbleDetected( U32 bubble ); -BOOL FPGABubbleSelfTestDetected( U32 bubble ); void setFPGABubbleSelfTest( U32 bubble ); void clearFPGABubbleSelfTest( U32 bubble );