mirror of https://github.com/ARMmbed/mbed-os.git
Seperatig string literal from macro
From C++11 and beyond string literals must be seperated by space so that they are recongizable as seperate tokens. Context macro in PPPCellularInterface (CTX) has been causing issues as it was not augmented with a space from a nearby string literal.pull/5116/head
parent
0906be6397
commit
8c9a0b3aa5
|
@ -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***" CTX"#") && 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=" CTX",\"%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