Host library for controlling a WiConnect enabled Wi-Fi module.
Dependents: wiconnect-ota_example wiconnect-web_setup_example wiconnect-test-console wiconnect-tcp_server_example ... more
Diff: internal/network/NetworkInterface.cpp
- Revision:
- 3:2dc2592bae5e
- Parent:
- 2:05e20e184e7e
- Child:
- 6:8a87a59d0d21
--- a/internal/network/NetworkInterface.cpp Mon Aug 11 03:38:27 2014 -0700 +++ b/internal/network/NetworkInterface.cpp Mon Aug 11 03:44:25 2014 -0700 @@ -429,6 +429,7 @@ SET_STR_BUFFER(ssidStrBuffer, sizeof(SsidStrBuffer)); const char *src = (const char*)ssid->val; int len = ssid->len; + char *buf = ptr; while(len--) { @@ -456,7 +457,7 @@ { if(count < 5) { - char *idx = strchr(strPtr, ':'); + const char *idx = strchr(strPtr, ':'); if(idx == NULL) { return false;