Skip to content

Commit e4e182a

Browse files
committed
Rectified mistake in if condition
thanks to @chaeplin for finding the mistake
1 parent 81859c5 commit e4e182a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WiFi/examples/WiFiClient/WiFiClient.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void loop() {
7373
"Connection: close\r\n\r\n");
7474
unsigned long timeout = millis();
7575
while (client.available() == 0) {
76-
if (millis() - timeout < 5000) {
76+
if (millis() - timeout > 5000) {
7777
Serial.println(">>> Client Timeout !");
7878
client.stop();
7979
return;

0 commit comments

Comments
 (0)