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:
parent
81859c5df6
commit
e4e182a966
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user