From 2f384e3c1fa5df236609e9f4c805483c580d2ef9 Mon Sep 17 00:00:00 2001 From: Kimmo Vaisanen Date: Thu, 16 Apr 2020 13:44:22 +0300 Subject: [PATCH] Cellular: Fix build problem if cellular.debug-at is set as null --- features/cellular/framework/device/ATHandler.cpp | 4 ++++ features/cellular/mbed_lib.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/features/cellular/framework/device/ATHandler.cpp b/features/cellular/framework/device/ATHandler.cpp index 683cbf526f..6dec8ed92f 100644 --- a/features/cellular/framework/device/ATHandler.cpp +++ b/features/cellular/framework/device/ATHandler.cpp @@ -35,6 +35,10 @@ using namespace mbed_cellular_util; #include "CellularLog.h" +#ifndef MBED_CONF_CELLULAR_DEBUG_AT +#define MBED_CONF_CELLULAR_DEBUG_AT 0 +#endif + // URCs should be handled fast, if you add debug traces within URC processing then you also need to increase this time #define PROCESS_URC_TIME 20 diff --git a/features/cellular/mbed_lib.json b/features/cellular/mbed_lib.json index 94e699586e..3055a40260 100644 --- a/features/cellular/mbed_lib.json +++ b/features/cellular/mbed_lib.json @@ -14,7 +14,7 @@ "value": 0 }, "debug-at": { - "help": "Enable AT debug prints. Note! This can have impact on UART performance and might need increasing of drivers.uart-serial-rxbuf-size", + "help": "Enable AT debug prints. Requires also mbed-trace to be enabled. Note! This can have impact on UART performance and might need increasing of drivers.uart-serial-rxbuf-size", "value": false }, "radio-access-technology": {