From 0132d31124dfebedb0326a18bf7c589aa4df096c Mon Sep 17 00:00:00 2001 From: Deepika Date: Sun, 10 Sep 2017 09:58:30 -0500 Subject: [PATCH] Fix IAR8 : user-defined literal operator not found Cellular example had build issues with IAR8, combination of define and string as argument to send function resulted in above error. Typecasting to const char * didn't help, hence replacing the define explicitly. --- .../cellular/generic_modem_driver/PPPCellularInterface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/features/netsocket/cellular/generic_modem_driver/PPPCellularInterface.cpp b/features/netsocket/cellular/generic_modem_driver/PPPCellularInterface.cpp index b78ce8310b..474f223558 100644 --- a/features/netsocket/cellular/generic_modem_driver/PPPCellularInterface.cpp +++ b/features/netsocket/cellular/generic_modem_driver/PPPCellularInterface.cpp @@ -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,"CTX) && at->recv("OK"); + bool success = at->send("AT+CNMI=2,""1") && 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***"CTX"#") && at->recv("CONNECT"); + bool success = at->send("ATD*99***""1""#") && 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="CTX",\"%s\",\"%s%s\"", + "+CGDCONT=""1"",\"%s\",\"%s%s\"", pdp_type, auth, _apn ) && _at->recv("OK");