mma8451q driver with a few minor modifications

Dependents:   Senet NAMote

Fork of lib_mma8451q by wayne roberts

Revision:
5:7bcda574c0fa
Parent:
3:96faac0d688e
Child:
6:828b08201d8b
--- a/mma8451q.cpp	Mon Mar 07 15:21:11 2016 -0500
+++ b/mma8451q.cpp	Fri Aug 12 13:26:13 2016 +0000
@@ -260,16 +260,16 @@
             }
             else if (pl_status.bits.LAPO == 2)
             {
+                orientation.right = true;
+                if(verbose)
+                    printf("right ");
+            }
+            else if (pl_status.bits.LAPO == 3)
+            {
                 orientation.left = true;
                 if(verbose)
                     printf("left ");
             }
-            else if (pl_status.bits.LAPO == 3)
-            {
-                orientation.right = true;
-                if(verbose)
-                    printf("right ");
-            }
             
             if (pl_status.bits.BAFRO)
             {