Fork of ublox-cellular-base to add LARA-R2 support

Fork of ublox-cellular-base by u-blox

Revision:
2:73fcc33c9400
Parent:
1:5aaecf2572dc
Child:
3:f9b2cd6f72b1
--- a/UbloxCellularBase.cpp	Mon Jun 12 23:03:38 2017 +0100
+++ b/UbloxCellularBase.cpp	Tue Jun 13 10:08:52 2017 +0100
@@ -21,10 +21,10 @@
 #include "mbed_trace.h"
 #define TRACE_GROUP "UCB"
 #else
-#define tr_debug(format, ...) debug(format "\n", ## __VA_ARGS__)
-#define tr_info(format, ...)  debug(format "\n", ## __VA_ARGS__)
-#define tr_warn(format, ...)  debug(format "\n", ## __VA_ARGS__)
-#define tr_error(format, ...) debug(format "\n", ## __VA_ARGS__)
+#define tr_debug(format, ...) debug_if(_debug_trace_on, format "\n", ## __VA_ARGS__)
+#define tr_info(format, ...)  debug_if(_debug_trace_on, format "\n", ## __VA_ARGS__)
+#define tr_warn(format, ...)  debug_if(_debug_trace_on, format "\n", ## __VA_ARGS__)
+#define tr_error(format, ...) debug_if(_debug_trace_on, format "\n", ## __VA_ARGS__)
 #endif
 
 /**********************************************************************