From 8f9abef3a85f45eb52cf6ac9a9887f7e601b94fb Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Thu, 28 Mar 2013 17:47:05 +0800 Subject: fix compiliation issue --- obdlogger/MPU6050.cpp | 3 +- obdlogger/ZtLib.cpp | 2 +- obdlogger/obdlogger.cbp | 29 +- obdlogger/obdlogger.hex | 2947 ++++++++++++++++++++----------------------- obdlogger/obdlogger.ino | 22 +- samples/obdtest/obdtest.ino | 90 +- 6 files changed, 1449 insertions(+), 1644 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 #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); diff --git a/obdlogger/ZtLib.cpp b/obdlogger/ZtLib.cpp index e458f06..f8b55df 100644 --- a/obdlogger/ZtLib.cpp +++ b/obdlogger/ZtLib.cpp @@ -12,7 +12,7 @@ extern "C" { #include #include #include - #include "../../Wire/utility/twi.h" + #include "../Wire/utility/twi.h" } #include "ZtLib.h" diff --git a/obdlogger/obdlogger.cbp b/obdlogger/obdlogger.cbp index 714897e..eaab57a 100644 --- a/obdlogger/obdlogger.cbp +++ b/obdlogger/obdlogger.cbp @@ -265,6 +265,30 @@ + + @@ -320,7 +344,10 @@