Skip to content

Commit

Permalink
fix gcc v10 compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fm4dd committed Jan 15, 2022
1 parent d81d89c commit 661d62c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions getbno055.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@
/* ------------------------------------------------------------ *
* global variables *
* ------------------------------------------------------------ */
int i2cfd; // I2C file descriptor
int verbose; // debug flag, 0 = normal, 1 = debug mode
extern int verbose; // debug flag, 0 = normal, 1 = debug mode

/* ------------------------------------------------------------ *
* BNO055 versions, status data and other infos struct *
Expand Down
5 changes: 5 additions & 0 deletions i2c_bno055.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
#include <fcntl.h>
#include "getbno055.h"

/* ------------------------------------------------------------ *
* global variables *
* ------------------------------------------------------------ */
int i2cfd; // I2C file descriptor

/* ------------------------------------------------------------ *
* get_i2cbus() - Enables the I2C bus communication. Raspberry *
* Pi 2 uses i2c-1, RPI 1 used i2c-0, NanoPi also uses i2c-0. *
Expand Down

0 comments on commit 661d62c

Please sign in to comment.