Skip to content

Commit 9d8969d

Browse files
author
Antti Kauppila
committed
Small fixes and doxygen update
1 parent 7f199ce commit 9d8969d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

features/cellular/framework/AT/ATHandler.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ class ATHandler {
281281
* @param resp_buf_size Response buffer size
282282
* @param format Format string for variadic arguments to be added to AT command; No separator needed.
283283
* Use %d for integer, %s for string and %b for byte string (requires 2 arguments: string and length)
284-
* @return @return last error that happened when parsing AT responses
284+
* @return last error that happened when parsing AT responses
285285
*/
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

@@ -292,18 +292,17 @@ class ATHandler {
292292
* @param resp Integer to hold response
293293
* @param format Format string for variadic arguments to be added to AT command; No separator needed.
294294
* Use %d for integer, %s for string and %b for byte string (requires 2 arguments: string and length)
295-
* @return @return last error that happened when parsing AT responses
295+
* @return last error that happened when parsing AT responses
296296
*/
297297
nsapi_error_t at_cmd_int(const char *cmd, const char *cmd_chr, int &resp, const char *format = "", ...);
298298

299299
/**
300300
* @brief at_cmd_discard Send an AT command and read and discard a response. Locks and unlocks ATHandler for operation
301301
* @param cmd AT command in form +<CMD> (will be used also in response reading, no extra chars allowed)
302302
* @param cmd_chr Char to be added to specific AT command: '?', '=' or ''. Will be used as such so '=1' is valid as well.
303-
* @param resp Integer to hold response
304303
* @param format Format string for variadic arguments to be added to AT command; No separator needed.
305304
* Use %d for integer, %s for string and %b for byte string (requires 2 arguments: string and length)
306-
* @return @return last error that happened when parsing AT responses
305+
* @return last error that happened when parsing AT responses
307306
*/
308307
nsapi_error_t at_cmd_discard(const char *cmd, const char *cmd_chr, const char *format = "", ...);
309308

features/cellular/framework/AT/AT_CellularNetwork.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ nsapi_error_t AT_CellularNetwork::set_registration(const char *plmn)
216216
if (mode != NWModeAutomatic) {
217217
return _at.at_cmd_discard("+COPS", "=0");
218218
}
219+
return NSAPI_ERROR_OK;
219220
} else {
220221
tr_debug("Manual network registration to %s", plmn);
221222
if (_op_act != RAT_UNKNOWN) {
@@ -325,7 +326,7 @@ nsapi_error_t AT_CellularNetwork::scan_plmn(operList_t &operators, int &opsCount
325326

326327
_at.lock();
327328

328-
_at.cmd_start_stop("+COPS", "?");
329+
_at.cmd_start_stop("+COPS", "=?");
329330

330331
_at.resp_start("+COPS:");
331332

0 commit comments

Comments
 (0)