From 6ab79f0536a6a1f99c7e323d07288321bc36d0e1 Mon Sep 17 00:00:00 2001 From: Mimmo La Fauci Date: Thu, 7 Jun 2012 13:51:48 +0200 Subject: [PATCH] Fixed issue with Cosm sketch --- WiFi/examples/WifiCosmClient/WifiCosmClient.ino | 2 +- WiFi/examples/WifiCosmClientString/WifiCosmClientString.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WiFi/examples/WifiCosmClient/WifiCosmClient.ino b/WiFi/examples/WifiCosmClient/WifiCosmClient.ino index cc456a14e..cac43c06d 100644 --- a/WiFi/examples/WifiCosmClient/WifiCosmClient.ino +++ b/WiFi/examples/WifiCosmClient/WifiCosmClient.ino @@ -81,7 +81,7 @@ void loop() { // if there's incoming data from the net connection. // send it out the serial port. This is for debugging // purposes only: - if (client.available()) { + while (client.available()) { char c = client.read(); Serial.print(c); } diff --git a/WiFi/examples/WifiCosmClientString/WifiCosmClientString.ino b/WiFi/examples/WifiCosmClientString/WifiCosmClientString.ino index a7b0b223f..0c78a638c 100644 --- a/WiFi/examples/WifiCosmClientString/WifiCosmClientString.ino +++ b/WiFi/examples/WifiCosmClientString/WifiCosmClientString.ino @@ -95,7 +95,7 @@ void loop() { // if there's incoming data from the net connection. // send it out the serial port. This is for debugging // purposes only: - if (client.available()) { + while (client.available()) { char c = client.read(); Serial.print(c); }