diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-03-28 17:47:05 +0800 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-03-28 17:47:39 +0800 |
commit | 8f9abef3a85f45eb52cf6ac9a9887f7e601b94fb (patch) | |
tree | 4b91413e1765b0880bc41c9f062dba900f03e714 /obdlogger/MPU6050.cpp | |
parent | 995219669f517d689b9c0b6c842285cc52ace354 (diff) | |
download | 2021-arduino-obd-8f9abef3a85f45eb52cf6ac9a9887f7e601b94fb.tar.gz 2021-arduino-obd-8f9abef3a85f45eb52cf6ac9a9887f7e601b94fb.tar.bz2 2021-arduino-obd-8f9abef3a85f45eb52cf6ac9a9887f7e601b94fb.zip |
fix compiliation issue
Diffstat (limited to 'obdlogger/MPU6050.cpp')
-rw-r--r-- | obdlogger/MPU6050.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/obdlogger/MPU6050.cpp b/obdlogger/MPU6050.cpp index 302a0c4..86901d9 100644 --- a/obdlogger/MPU6050.cpp +++ b/obdlogger/MPU6050.cpp @@ -29,6 +29,7 @@ // Register 0x75 (WHO_AM_I) = 0x68. // +#include <Arduino.h> #include "MPU6050.h" // -------------------------------------------------------- @@ -46,7 +47,7 @@ // int MPU6050_read(int start, uint8_t *buffer, int size) { - int i, n, error; + int i, n; Wire.beginTransmission(MPU6050_I2C_ADDRESS); n = Wire.write(start); |