Index: firmware/App/Drivers/BubbleDetector.c =================================================================== diff -u -rf730082d809bc52c15b2d17b8fd0a8d535e5c21a -raf8485c010085b535a81e9c44426c60eea2535e6 --- firmware/App/Drivers/BubbleDetector.c (.../BubbleDetector.c) (revision f730082d809bc52c15b2d17b8fd0a8d535e5c21a) +++ firmware/App/Drivers/BubbleDetector.c (.../BubbleDetector.c) (revision af8485c010085b535a81e9c44426c60eea2535e6) @@ -56,22 +56,14 @@ * sensor readings for all bubble detectors. * @details \b Inputs: FPGA * @details \b Outputs: none - * @return The current state of the given bubble detector sensor. + * @return none *************************************************************************/ void readBubbleDetectors( void ) { BOOL bubble; - U32 i; - for ( i = 0; i < NUM_OF_BUBBLE_DETECTORS; i++ ) - { - if ( BUBBLE_DETECTOR_ADV == (BUBBLE_DETECTOR_T)i ) - { - bubble = ADVBubbleDetected(); // read current sensor state from FPGA - currentBubbleState[ i ].data = (U32)( FALSE == bubble ? NO_BUBBLE_DETECTED : BUBBLE_DETECTED ); - } - // no other sensors. for loop prevents possibility of an "else". - } + bubble = ADVBubbleDetected(); // read current sensor state from FPGA + currentBubbleState[ BUBBLE_DETECTOR_ADV ].data = (U32)( FALSE == bubble ? NO_BUBBLE_DETECTED : BUBBLE_DETECTED ); } /*********************************************************************//**