wifly/socket interface for wifly modules
Dependents: PROJET_MATTHIEU_2019 PROJET_MATTHIEU_2019
Diff: Wifly/Wifly.cpp
- Revision:
- 2:d78b1f66e345
- Parent:
- 1:8f04181f9ad8
- Child:
- 3:10b3866f0ea2
--- a/Wifly/Wifly.cpp Wed Aug 22 15:52:29 2012 +0000 +++ b/Wifly/Wifly.cpp Wed Aug 22 15:56:23 2012 +0000 @@ -374,7 +374,7 @@ result = (putc(str[i]) == str[i]) ? result + 1 : result; while (1) { - if (tmr.read() > 1.5) { + if (tmr.read() > 1) { //We flush the buffer while (wifi.readable()) wifi.getc(); @@ -413,7 +413,7 @@ timeout.start(); tmr.reset(); while (1) { - if (timeout.read() > 3) { + if (timeout.read() > 2) { if (i == 0) { res = NULL; break;