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
adbridge 2017-09-11 11:13:54 +01:00
parent 0132d31124
commit 6bd28ecb68
1 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ static bool set_CNMI(ATCmdParser *at)
// New SMS indication configuration
// 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
bool success = at->send("AT+CNMI=2,""1") && at->recv("OK");
bool success = at->send("AT+CNMI=2," CTX) && at->recv("OK");
return success;
}
@ -141,7 +141,7 @@ static void CMT_URC(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;
}
@ -469,7 +469,7 @@ retry_without_dual_stack:
#endif
success = _at->send("AT"
"+FCLASS=0;" // set to connection (ATD) to data mode
"+CGDCONT=""1"",\"%s\",\"%s%s\"",
"+CGDCONT=" CTX",\"%s\",\"%s%s\"",
pdp_type, auth, _apn
)
&& _at->recv("OK");