mirror of https://github.com/ARMmbed/mbed-os.git
Remove string literal values and revert back to using CTX macro .
The previous fix to replace CTX with string literals was the wrong solution. All that was actually required was to insert a space before the macro.pull/4938/head
parent
0132d31124
commit
6bd28ecb68
|
@ -110,7 +110,7 @@ static bool set_CNMI(ATCmdParser *at)
|
||||||
// New SMS indication configuration
|
// New SMS indication configuration
|
||||||
// set AT+CMTI=[mode, index] , 0 PDU mode, 1 text mode
|
// set AT+CMTI=[mode, index] , 0 PDU mode, 1 text mode
|
||||||
// Multiple URCs for SMS, i.e., CMT, CMTI, UCMT, CBMI, CDSI as DTE could be following any of these SMS formats
|
// Multiple URCs for SMS, i.e., CMT, CMTI, UCMT, CBMI, CDSI as DTE could be following any of these SMS formats
|
||||||
bool success = at->send("AT+CNMI=2,""1") && at->recv("OK");
|
bool success = at->send("AT+CNMI=2," CTX) && at->recv("OK");
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,7 +141,7 @@ static void CMT_URC(ATCmdParser *at)
|
||||||
|
|
||||||
static bool set_atd(ATCmdParser *at)
|
static bool set_atd(ATCmdParser *at)
|
||||||
{
|
{
|
||||||
bool success = at->send("ATD*99***""1""#") && at->recv("CONNECT");
|
bool success = at->send("ATD*99***" CTX"#") && at->recv("CONNECT");
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
@ -469,7 +469,7 @@ retry_without_dual_stack:
|
||||||
#endif
|
#endif
|
||||||
success = _at->send("AT"
|
success = _at->send("AT"
|
||||||
"+FCLASS=0;" // set to connection (ATD) to data mode
|
"+FCLASS=0;" // set to connection (ATD) to data mode
|
||||||
"+CGDCONT=""1"",\"%s\",\"%s%s\"",
|
"+CGDCONT=" CTX",\"%s\",\"%s%s\"",
|
||||||
pdp_type, auth, _apn
|
pdp_type, auth, _apn
|
||||||
)
|
)
|
||||||
&& _at->recv("OK");
|
&& _at->recv("OK");
|
||||||
|
|
Loading…
Reference in New Issue