enhancing Multitech's library for some accelerometer

Fork of MMA845x by Multi-Hackers

Revision:
10:89dd748f9211
Parent:
9:645f94e7e1d5
Child:
12:92294b5ca1c1
--- a/MMA845x.cpp	Mon Jul 02 22:16:45 2018 +0000
+++ b/MMA845x.cpp	Mon Jul 02 22:21:01 2018 +0000
@@ -146,10 +146,11 @@
 {
     uint8_t result = 0;
 
-    if(_who_am_i != MMA8451) {
-        debug("%s %d: Feature not compatible with the connected device.\n", __FILE__, __LINE__);
-        result = 1;
-    }
+    // if(_who_am_i != MMA8451) {
+    //     debug("%s %d: Feature not compatible with the connected device.\n", __FILE__, __LINE__);
+    //     result = 1;
+    // }
+    // ↑ not true. MMA8451 is the only one supporting variable trip-angle values
 
     return result;
 }