Kenji Arai / BMP180

Dependents:   LPC1114_data_logger ProjectIOT Wether_Meter LPC1114_barometer_with_data_logging

Files at this revision

API Documentation at this revision

Comitter:
kenjiArai
Date:
Fri Jun 20 21:43:29 2014 +0000
Parent:
0:9c1a7a1f0d97
Child:
2:b81e7659be7a
Commit message:
unchanged

Changed in this revision

BMP180.cpp Show annotated file Show diff for this revision Revisions of this file
BMP180.h Show annotated file Show diff for this revision Revisions of this file
--- a/BMP180.cpp	Sun Jun 15 03:28:26 2014 +0000
+++ b/BMP180.cpp	Fri Jun 20 21:43:29 2014 +0000
@@ -7,7 +7,7 @@
  *  http://mbed.org/users/kenjiArai/
  *      Created: August    14th, 2013   for STM32L152 
  *      Changed: May       21st, 2014   mbed LPC1114
- *      Revised: June      14th, 2014
+ *      Revised: June      19th, 2014
  *
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
@@ -202,9 +202,9 @@
 }
 
 void BMP180::i2c_read_n_bytes (int addr, char* dt, int n) {
-    i2c.read(addr, dt, 2);
+    i2c.read(addr, dt, n);
 }
 
 void BMP180::i2c_write_n_bytes (int addr, char* dt, int n) {
-    i2c.write(addr, dt, 2);
+    i2c.write(addr, dt, n);
 }
--- a/BMP180.h	Sun Jun 15 03:28:26 2014 +0000
+++ b/BMP180.h	Fri Jun 20 21:43:29 2014 +0000
@@ -7,7 +7,7 @@
  *  http://mbed.org/users/kenjiArai/
  *      Created: August    14th, 2013   for STM32L152 
  *      Changed: May       21st, 2014   mbed LPC1114
- *      Revised: June      14th, 2014
+ *      Revised: June      15th, 2014
  *
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE