Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: ak7401ctrl.cpp
- Revision:
- 27:41aa9fb23a2f
- Parent:
- 16:d85be9bafb80
- Child:
- 29:b488d2c89fba
diff -r 2fca76521680 -r 41aa9fb23a2f ak7401ctrl.cpp --- a/ak7401ctrl.cpp Wed Feb 22 21:56:05 2017 +0000 +++ b/ak7401ctrl.cpp Sat Mar 11 01:14:15 2017 +0000 @@ -5,10 +5,8 @@ * Constructor. * */ -Ak7401Ctrl::Ak7401Ctrl(){ +Ak7401Ctrl::Ak7401Ctrl() : AkmSensor(){ ak7401 = NULL; - event = false; - sensorName = ""; } /** @@ -77,10 +75,6 @@ event = true; } -bool Ak7401Ctrl::isEvent(){ - return event; -} - AkmSensor::Status Ak7401Ctrl::startSensor(){ ticker.attach(callback(this, &Ak7401Ctrl::eventCallback), interval); return AkmSensor::SUCCESS; @@ -141,8 +135,5 @@ return status; } -char* Ak7401Ctrl::getSensorName(){ - return sensorName; -}