Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: ak09970ctrl.cpp
- Revision:
- 27:41aa9fb23a2f
- Parent:
- 16:d85be9bafb80
- Child:
- 29:b488d2c89fba
--- a/ak09970ctrl.cpp Wed Feb 22 21:56:05 2017 +0000 +++ b/ak09970ctrl.cpp Sat Mar 11 01:14:15 2017 +0000 @@ -6,11 +6,9 @@ * Constructor. * */ -Ak09970Ctrl::Ak09970Ctrl(){ - event = false; +Ak09970Ctrl::Ak09970Ctrl() : AkmSensor(){ ak09970 = NULL; sw = NULL; - sensorName = ""; } /** @@ -125,10 +123,6 @@ event = true; } -bool Ak09970Ctrl::isEvent(){ - return event; -} - AkmSensor::Status Ak09970Ctrl::startSensor(){ // read one data to clear switch AK09970::SwitchStatus sw_status; @@ -410,7 +404,3 @@ } return status; } - -char* Ak09970Ctrl::getSensorName(){ - return sensorName; -}