Skip to content

Cellular: Fix build problem if cellular.debug-at is set as null #12815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions features/cellular/framework/device/ATHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion features/cellular/mbed_lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down