Moved pl_status to public

Fork of lib_mma8451q by wayne roberts

Files at this revision

API Documentation at this revision

Comitter:
jknapp_smtc
Date:
Tue Nov 17 03:12:09 2015 +0000
Parent:
2:4bc96749141e
Commit message:
Moved pl_status to public

Changed in this revision

mma8451q.cpp Show annotated file Show diff for this revision Revisions of this file
mma8451q.h Show annotated file Show diff for this revision Revisions of this file
diff -r 4bc96749141e -r 6d0d5c53d825 mma8451q.cpp
--- a/mma8451q.cpp	Tue Sep 01 00:27:13 2015 +0000
+++ b/mma8451q.cpp	Tue Nov 17 03:12:09 2015 +0000
@@ -227,7 +227,7 @@
         read_single(MMA8451_PULSE_SRC);
     }
     if (int_src.bits.SRC_LNDPRT) {
-        mma_pl_status_t pl_status;
+        //mma_pl_status_t pl_status;
         /*AN4068 Step 12: Write a Service Routine to Service the Interrupt */
         pl_status.octet = read_single(MMA8451_PL_STATUS);
         if (verbose) {
diff -r 4bc96749141e -r 6d0d5c53d825 mma8451q.h
--- a/mma8451q.h	Tue Sep 01 00:27:13 2015 +0000
+++ b/mma8451q.h	Tue Nov 17 03:12:09 2015 +0000
@@ -143,6 +143,7 @@
 
         bool verbose;   // print interrupt event
         mma_out_t out;
+        mma_pl_status_t pl_status;
         transient_cfg_t transient_cfg;
         ctrl_reg1_t ctrl_reg1;
         ctrl_reg4_t ctrl_reg4;