Change to comply with mbed os 5.1, as the attach function as used has been deprecated

Dependents:   Barometer-Example LoRaWAN-demo-72-bootcamp

Fork of BMP085 by silabs-abakurs

BMP085 library supporting mbed os low power

Revision:
2:dcd90bee9ac2
Parent:
1:33acd2e1edab
Child:
3:4622b90b4657
--- a/BMP085.cpp	Wed Nov 18 12:47:49 2015 +0000
+++ b/BMP085.cpp	Tue Jan 24 10:33:24 2017 +0000
@@ -37,7 +37,7 @@
     }
 
     _state = BMP085_BUSY;
-    delay.attach(this, &BMP085::_callback_handler, 0.01);
+    delay.attach(callback(this, &BMP085::_callback_handler_timeout), 0.01);
     while(_state != BMP085_IDLE) {
         sleep();
     }
@@ -62,7 +62,7 @@
     }
 
     _state = BMP085_BUSY;
-    delay.attach(this, &BMP085::_callback_handler, 0.02);
+    delay.attach(callback(this, &BMP085::_callback_handler_timeout), 0.02);
     while(_state != BMP085_IDLE) {
         sleep();
     }
@@ -116,6 +116,6 @@
     _state = BMP085_IDLE;
 }
 
-void BMP085::_callback_handler() {
+void BMP085::_callback_handler_timeout() {
     _state = BMP085_IDLE;
 }