mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-07 16:23:38 +03:00
Rectified mistake in if condition
thanks to @chaeplin for finding the mistake
This commit is contained in:
parent
81859c5df6
commit
e4e182a966
@ -73,7 +73,7 @@ void loop() {
|
|||||||
"Connection: close\r\n\r\n");
|
"Connection: close\r\n\r\n");
|
||||||
unsigned long timeout = millis();
|
unsigned long timeout = millis();
|
||||||
while (client.available() == 0) {
|
while (client.available() == 0) {
|
||||||
if (millis() - timeout < 5000) {
|
if (millis() - timeout > 5000) {
|
||||||
Serial.println(">>> Client Timeout !");
|
Serial.println(">>> Client Timeout !");
|
||||||
client.stop();
|
client.stop();
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user