Skip to content

Commit db1bf6f

Browse files
pennamfacchinm
authored andcommitted
AT_CellularContext: Fix ^SCFG commands to configure bands and URCs
1 parent b69b66e commit db1bf6f

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

Diff for: connectivity/cellular/source/framework/AT/AT_CellularContext.cpp

+5-10
Original file line numberDiff line numberDiff line change
@@ -452,26 +452,21 @@ void AT_CellularContext::enable_access_technology()
452452
{
453453
case CATM1:
454454
_at.at_cmd_discard("^SXRAT", "=","%d", _rat);
455-
_at.cmd_start_stop("^SCFG", "=","%s%s", "Radio/Band/CatM",buffer);
456-
_at.resp_start("^SCFG");
457-
_at.cmd_start_stop("^SCFG", "=","%s%d%d", "Radio/Band/CatNB",0,0);
458-
_at.resp_start("^SCFG");
455+
_at.at_cmd_discard("^SCFG", "=","%s%s", "Radio/Band/CatM",buffer);
456+
_at.at_cmd_discard("^SCFG", "=","%s%d%d", "Radio/Band/CatNB",0,0);
459457
break;
460458

461459
case CATNB:
462460
_at.at_cmd_discard("^SXRAT", "=","%d", _rat);
463-
_at.cmd_start_stop("^SCFG", "=","%s%s", "Radio/Band/CatNB",buffer);
464-
_at.resp_start("^SCFG");
465-
_at.cmd_start_stop("^SCFG", "=","%s%d%d", "Radio/Band/CatM",0,0);
466-
_at.resp_start("^SCFG");
461+
_at.at_cmd_discard("^SCFG", "=","%s%s", "Radio/Band/CatNB",buffer);
462+
_at.at_cmd_discard("^SCFG", "=","%s%d%d", "Radio/Band/CatM",0,0);
467463
break;
468464

469465
default:
470466
break;
471467
}
472468

473-
_at.cmd_start_stop("^SCFG", "=", "%s%s", "Tcp/withURCs", "on");
474-
_at.resp_start("^SCFG");
469+
_at.at_cmd_discard("^SCFG", "=", "%s%s", "Tcp/withURCs", "on");
475470
free(buffer);
476471

477472
}

0 commit comments

Comments
 (0)