1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-04 18:03:20 +03:00

Rectified mistake in if condition

thanks to @chaeplin for finding the mistake
This commit is contained in:
Hemal Chevli 2016-04-05 13:12:22 +05:30
parent 81859c5df6
commit e4e182a966

View File

@ -73,7 +73,7 @@ void loop() {
"Connection: close\r\n\r\n");
unsigned long timeout = millis();
while (client.available() == 0) {
if (millis() - timeout < 5000) {
if (millis() - timeout > 5000) {
Serial.println(">>> Client Timeout !");
client.stop();
return;