File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
features/cellular/framework/AT Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1086,23 +1086,27 @@ void ATHandler::flush()
1086
1086
1087
1087
void ATHandler::debug_print (char *p, int len)
1088
1088
{
1089
- #if MBED_CONF_MBED_TRACE_ENABLE
1089
+ #if MBED_CONF_CELLULAR_DEBUG_AT
1090
1090
if (_debug_on) {
1091
+ #if MBED_CONF_MBED_TRACE_ENABLE
1091
1092
mbed_cellular_trace::mutex_wait ();
1093
+ #endif
1092
1094
for (ssize_t i = 0 ; i < len; i++) {
1093
1095
char c = *p++;
1094
1096
if (!isprint (c)) {
1095
1097
if (c == ' \r ' ) {
1098
+ debug (" \n " );
1096
1099
} else if (c == ' \n ' ) {
1097
- debug (" %c" , c);
1098
1100
} else {
1099
1101
debug (" [%d]" , c);
1100
1102
}
1101
1103
} else {
1102
1104
debug (" %c" , c);
1103
1105
}
1104
1106
}
1107
+ #if MBED_CONF_MBED_TRACE_ENABLE
1105
1108
mbed_cellular_trace::mutex_release ();
1106
- }
1107
1109
#endif
1110
+ }
1111
+ #endif // MBED_CONF_CELLULAR_DEBUG_AT
1108
1112
}
You can’t perform that action at this time.
0 commit comments