Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: ak9750ctrl.cpp
- Revision:
- 16:d85be9bafb80
- Parent:
- 15:1238993fd75f
- Child:
- 27:41aa9fb23a2f
diff -r 1238993fd75f -r d85be9bafb80 ak9750ctrl.cpp --- a/ak9750ctrl.cpp Fri Oct 28 21:27:33 2016 +0000 +++ b/ak9750ctrl.cpp Wed Jan 04 00:52:30 2017 +0000 @@ -148,7 +148,7 @@ ak9750->getSensorData(&data); // enable interrupt - interrupt->fall(this, &Ak9750Ctrl::detectINT); + interrupt->fall(callback(this, &Ak9750Ctrl::detectINT)); // set operation mode if(ak9750->setOperationMode(mode,filter) != AK9750::SUCCESS) { @@ -161,7 +161,7 @@ } AkmSensor::Status Ak9750Ctrl::startSensor(const float sec){ - interrupt->fall(this, &Ak9750Ctrl::detectINT); + interrupt->fall(callback(this, &Ak9750Ctrl::detectINT)); return AkmSensor::ERROR; }