Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of AkmSensor by
Diff: ak9750ctrl.cpp
- Revision:
- 27:41aa9fb23a2f
- Parent:
- 16:d85be9bafb80
- Child:
- 29:b488d2c89fba
diff -r 2fca76521680 -r 41aa9fb23a2f ak9750ctrl.cpp --- 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; -}