Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: ak9752ctrl.cpp
- Revision:
- 13:d008249f0359
- Parent:
- 11:cef8dc1cf010
- Child:
- 15:1238993fd75f
--- a/ak9752ctrl.cpp Wed Aug 10 23:50:53 2016 +0000 +++ b/ak9752ctrl.cpp Fri Aug 12 00:04:48 2016 +0000 @@ -11,6 +11,7 @@ ak9752 = NULL; event = false; interrupt = NULL; + sensorName = ""; } /** @@ -32,6 +33,7 @@ if(subId == SUB_ID_AK9752){ ak9752 = new AK9752(); + sensorName = "AK9752"; } else{ return AkmSensor::ERROR; @@ -283,3 +285,6 @@ } return status; } +char* Ak9752Ctrl::getSensorName(){ + return sensorName; +}