From a8fd02adfb5ba7eb7ad014adb731c3e97cb2289e Mon Sep 17 00:00:00 2001 From: Kimmo Vaisanen Date: Thu, 18 Jun 2020 09:44:29 +0300 Subject: [PATCH] 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. --- .../Altair/ALT1250/PPP/ALT1250_PPP_CellularNetwork.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/features/cellular/framework/targets/Altair/ALT1250/PPP/ALT1250_PPP_CellularNetwork.cpp b/features/cellular/framework/targets/Altair/ALT1250/PPP/ALT1250_PPP_CellularNetwork.cpp index d506ee38a95..9375b1662f1 100755 --- a/features/cellular/framework/targets/Altair/ALT1250/PPP/ALT1250_PPP_CellularNetwork.cpp +++ b/features/cellular/framework/targets/Altair/ALT1250/PPP/ALT1250_PPP_CellularNetwork.cpp @@ -40,12 +40,12 @@ nsapi_error_t ALT1250_PPP_CellularNetwork::set_access_technology_impl(RadioAcces switch (opsAct) { case RAT_CATM1: if (memcmp(resp, "CATM", 4)) { - _at.at_cmd_discard("%RATACT", "=\"CATM\""); + _at.at_cmd_discard("%RATACT", "=\"CATM\",1"); } break; case RAT_NB1: if (memcmp(resp, "NBIOT", 5)) { - _at.at_cmd_discard("%RATACT", "=\"NBIOT\""); + _at.at_cmd_discard("%RATACT", "=\"NBIOT\",1"); } break; case RAT_GSM: @@ -55,7 +55,7 @@ nsapi_error_t ALT1250_PPP_CellularNetwork::set_access_technology_impl(RadioAcces break; default: if (memcmp(resp, "DEFAULT", 7)) { - _at.at_cmd_discard("%RATACT", "=\"DEFAULT\""); + _at.at_cmd_discard("%RATACT", "=\"DEFAULT\",1"); } _at.unlock(); _op_act = RAT_UNKNOWN;