Skip to content

Commit e19249f

Browse files
author
Antti Kauppila
committed
Tracing added for Handle_start + doxygen updates
1 parent 43b6745 commit e19249f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

features/cellular/framework/AT/ATHandler.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,13 @@ void ATHandler::handle_start(const char *cmd, const char *cmd_chr)
11791179
len += cmd_char_len;
11801180
}
11811181
_cmd_buffer[len] = '\0';
1182+
1183+
const bool temp_state = get_debug();
1184+
set_debug(true);
1185+
11821186
cmd_start(_cmd_buffer);
1187+
1188+
set_debug(temp_state);
11831189
}
11841190

11851191
void ATHandler::cmd_start_stop(const char *cmd, const char *cmd_chr, const char *format, ...)

features/cellular/framework/AT/ATHandler.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ class ATHandler {
263263

264264
/**
265265
* @brief cmd_start_stop Starts an AT command, writes given variadic arguments and stops the command. Use this
266-
* command when you need multiple responses to be handled.
266+
* command when you need multiple response parameters to be handled.
267267
* NOTE: Does not lock ATHandler for process!
268268
*
269269
* @param cmd AT command in form +<CMD> (will be used also in response reading, no extra chars allowed)
@@ -274,7 +274,7 @@ class ATHandler {
274274
void cmd_start_stop(const char *cmd, const char *cmd_chr, const char *format = "", ...);
275275

276276
/**
277-
* @brief at_cmd_str Send an AT command and read 1 line string response. Locks and unlocks ATHandler for operation
277+
* @brief at_cmd_str Send an AT command and read a single string response. Locks and unlocks ATHandler for operation
278278
* @param cmd AT command in form +<CMD> (will be used also in response reading, no extra chars allowed)
279279
* @param cmd_chr Char to be added to specific AT command: '?', '=' or ''. Will be used as such so '=1' is valid as well.
280280
* @param resp_buf Response buffer
@@ -286,7 +286,7 @@ class ATHandler {
286286
nsapi_error_t at_cmd_str(const char *cmd, const char *cmd_chr, char *resp_buf, size_t resp_buf_size, const char *format = "", ...);
287287

288288
/**
289-
* @brief at_cmd_int Send an AT command and read 1 line integer response. Locks and unlocks ATHandler for operation
289+
* @brief at_cmd_int Send an AT command and read a single integer response. Locks and unlocks ATHandler for operation
290290
* @param cmd AT command in form +<CMD> (will be used also in response reading, no extra chars allowed)
291291
* @param cmd_chr Char to be added to specific AT command: '?', '=' or ''. Will be used as such so '=1' is valid as well.
292292
* @param resp Integer to hold response

0 commit comments

Comments
 (0)