for TwitterMbed
Fork of GSwifi_old by
Diff: GSwifi.cpp
- Revision:
- 9:3b819ba34c6c
- Parent:
- 8:bce9e7e51a0d
- Child:
- 10:698c5e96b5b1
--- a/GSwifi.cpp Tue Aug 21 08:34:01 2012 +0000 +++ b/GSwifi.cpp Wed Aug 22 00:27:58 2012 +0000 @@ -395,7 +395,7 @@ } break; case GSRES_MACADDRESS: - if (strncmp(buf, "00:", 3) == 0) { + if (buf[2] == ':' && buf[5] == ':') { int mac1, mac2, mac3, mac4, mac5, mac6; sscanf(buf, "%x:%x:%x:%x:%x:%x", &mac1, &mac2, &mac3, &mac4, &mac5, &mac6); _mac[0] = mac1;