New cellular update
Fork of ublox-at-cellular-interface-ext by
Diff: UbloxATCellularInterfaceExt.cpp
- Revision:
- 5:9fd89567f769
- Parent:
- 4:39acbc0111eb
- Child:
- 10:3b24bc50cc06
--- a/UbloxATCellularInterfaceExt.cpp Fri Jun 09 22:23:28 2017 +0000 +++ b/UbloxATCellularInterfaceExt.cpp Tue Jun 13 00:12:01 2017 +0100 @@ -15,13 +15,14 @@ #include "UbloxATCellularInterfaceExt.h" #include "APN_db.h" -#if defined(FEATURE_COMMON_PAL) +#ifdef FEATURE_COMMON_PAL #include "mbed_trace.h" #define TRACE_GROUP "UCAD" #else -#define debug_if(_debug_trace_on, ...) (void(0)) // dummies if feature common pal is not added -#define tr_info(...) (void(0)) // dummies if feature common pal is not added -#define tr_error(...) (void(0)) // dummies if feature common pal is not added +#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__) #endif /**********************************************************************