Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: ak9750ctrl.cpp
- Revision:
- 27:41aa9fb23a2f
- Parent:
- 16:d85be9bafb80
- Child:
- 29:b488d2c89fba
--- a/ak9750ctrl.cpp Wed Feb 22 21:56:05 2017 +0000 +++ b/ak9750ctrl.cpp Sat Mar 11 01:14:15 2017 +0000 @@ -7,11 +7,9 @@ * Constructor. * */ -Ak9750Ctrl::Ak9750Ctrl(){ +Ak9750Ctrl::Ak9750Ctrl() : AkmSensor(){ ak9750 = NULL; - event = false; interrupt = NULL; - sensorName = ""; } /** @@ -138,10 +136,6 @@ event = true; } -bool Ak9750Ctrl::isEvent(){ - return event; -} - AkmSensor::Status Ak9750Ctrl::startSensor(){ // read one data to clear INT pin AK9750::SensorData data; @@ -468,6 +462,3 @@ } return status; } -char* Ak9750Ctrl::getSensorName(){ - return sensorName; -}