danjperron/mpu6050TestInC

MPU6050.cpp:148:13: error: ‘usleep’ was not declared in this scope

Closed this issue · 1 comments

I get this error if I try to compile (I use the makefile)

MPU6050.cpp: In member function ‘void MPU6050::setup()’:
MPU6050.cpp:61:22: error: ‘usleep’ was not declared in this scope
usleep(1000);
^
MPU6050.cpp: In member function ‘void MPU6050::resetFifo()’:
MPU6050.cpp:148:13: error: ‘usleep’ was not declared in this scope
usleep(500);

Ok I fixed it! Please clone it again.

Espérant le tout fonctionnel maintenant.