Skip to content

Commit a8fd02a

Browse files
author
Kimmo Vaisanen
committed
Cellular: ALT1250: Store RAT to permament memory
When RAT is changed it is now saved to modem's permanent memory. This avoid unnecessary changing of it on every reboot.
1 parent 86dad5c commit a8fd02a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

features/cellular/framework/targets/Altair/ALT1250/PPP/ALT1250_PPP_CellularNetwork.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ nsapi_error_t ALT1250_PPP_CellularNetwork::set_access_technology_impl(RadioAcces
4040
switch (opsAct) {
4141
case RAT_CATM1:
4242
if (memcmp(resp, "CATM", 4)) {
43-
_at.at_cmd_discard("%RATACT", "=\"CATM\"");
43+
_at.at_cmd_discard("%RATACT", "=\"CATM\",1");
4444
}
4545
break;
4646
case RAT_NB1:
4747
if (memcmp(resp, "NBIOT", 5)) {
48-
_at.at_cmd_discard("%RATACT", "=\"NBIOT\"");
48+
_at.at_cmd_discard("%RATACT", "=\"NBIOT\",1");
4949
}
5050
break;
5151
case RAT_GSM:
@@ -55,7 +55,7 @@ nsapi_error_t ALT1250_PPP_CellularNetwork::set_access_technology_impl(RadioAcces
5555
break;
5656
default:
5757
if (memcmp(resp, "DEFAULT", 7)) {
58-
_at.at_cmd_discard("%RATACT", "=\"DEFAULT\"");
58+
_at.at_cmd_discard("%RATACT", "=\"DEFAULT\",1");
5959
}
6060
_at.unlock();
6161
_op_act = RAT_UNKNOWN;

0 commit comments

Comments
 (0)