Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FXOS8700CQ MODSERIAL mbed
Fork of Avnet_ATT_Cellular_IOT by
Diff: wnc_control.cpp
- Revision:
- 45:a836eecd5d12
- Parent:
- 44:c95a85b5cf92
- Child:
- 46:da9d788f5d5a
--- a/wnc_control.cpp Sun Jul 24 17:45:30 2016 +0000
+++ b/wnc_control.cpp Sun Jul 24 17:50:42 2016 +0000
@@ -269,12 +269,13 @@
{
if (check_wnc_ready() < 0)
{
- static string noRespStr("");
+ static string noRespStr;
string truncStr(s, 50);
pc.puts("FAIL send cmd: ");
pc.puts(truncStr.c_str());
pc.puts("\r\n");
WNC_MDM_ERR = WNC_NO_RESPONSE;
+ noRespStr.erase();
*r = &noRespStr;
return (-2);
}
