Skip to content

Commit b80e611

Browse files
authored
Merge pull request #3 from Scottpedia/master
correct the fix
2 parents eec388e + ca04a11 commit b80e611

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

MPU6050.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@
4141
#include <sys/ioctl.h>
4242
#include <sys/types.h>
4343
#include <time.h>
44-
extern "C"{ //include the c library in cpp programs.
45-
#include <linux/i2c-dev.h>
46-
}
44+
#include <linux/i2c-dev.h>
45+
#include <i2c/smbus.h>
4746
#include <cmath>
4847
#include <thread>
4948

0 commit comments

Comments
 (0)