Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: akmakd.cpp
- Revision:
- 27:41aa9fb23a2f
- Parent:
- 20:2fca76521680
- Child:
- 29:b488d2c89fba
diff -r 2fca76521680 -r 41aa9fb23a2f akmakd.cpp --- a/akmakd.cpp Wed Feb 22 21:56:05 2017 +0000 +++ b/akmakd.cpp Sat Mar 11 01:14:15 2017 +0000 @@ -7,11 +7,9 @@ * Constructor. * */ -AkmAkd::AkmAkd(){ - event = false; +AkmAkd::AkmAkd() : AkmSensor(){ compass = NULL; drdy = NULL; - sensorName = ""; } /** @@ -164,10 +162,6 @@ event = true; } -bool AkmAkd::isEvent(){ - return event; -} - AkmAkd::InterruptMode AkmAkd::getInterrupt(uint8_t primaryId, uint8_t subId){ AkmAkd::InterruptMode ret = AkmAkd::INTERRUPT_DISABLED; @@ -407,8 +401,4 @@ } } return status; -} - -char* AkmAkd::getSensorName(){ - return sensorName; } \ No newline at end of file