1

Revision:
17:6e4232c421c0
Parent:
16:d6dde2318edc
Child:
18:27d839e6dc0e
--- a/MMA8452.h	Wed Mar 05 16:47:13 2014 +0000
+++ b/MMA8452.h	Wed Mar 05 17:01:00 2014 +0000
@@ -21,10 +21,6 @@
 
 // the SparkFun breakout board defaults to 1, set to 0 if SA0 jumper on the bottom of the board is set
 // see the Table 10. I2C Device Address Sequence in Freescale MMA8452Q pdf
-
-
-#define DBG(...) pc.printf(__VA_ARGS__); pc.printf("\r\n");
-#define DBGX(...) pc.print(__VA_ARGS__);
  
 #include "mbed.h" 
 
@@ -238,7 +234,9 @@
       DataRateHz getDataRate();
       BitDepth getBitDepth();
       
+      #ifdef MMA8452_DEBUG
       void debugRegister(char reg);
+      #endif
    
     private:
       int readRaw(char src, char *dst, int len);