The Hiking Pal tracking device firmware. See full description on the detail page: https://www.hackster.io/bowenfeng/hiking-pal-v1-07c02d
Dependencies: FXOS8700CQ MODSERIAL mbed
Fork of Avnet_ATT_Cellular_IOT by
Diff: wnc_control.cpp
- Revision:
- 45:a836eecd5d12
- Parent:
- 44:c95a85b5cf92
- Child:
- 46:da9d788f5d5a
diff -r c95a85b5cf92 -r a836eecd5d12 wnc_control.cpp --- 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); }