Skip to content

Commit

Permalink
Don't submit more baro i2c requests if the bus is busy
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen committed Jan 26, 2011
1 parent d524c67 commit fa88414
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sw/airborne/boards/lisa_l/baro_board.c
Expand Up @@ -26,6 +26,7 @@ void baro_init(void) {

void baro_periodic(void) {
// check i2c_done
if (!i2c_idle(&i2c2)) return;
switch (baro_board.status) {
case LBS_UNINITIALIZED:
baro_board_send_reset();
Expand Down

0 comments on commit fa88414

Please sign in to comment.