Host library for controlling a WiConnect enabled Wi-Fi module.

Dependents:   wiconnect-ota_example wiconnect-web_setup_example wiconnect-test-console wiconnect-tcp_server_example ... more

Revision:
33:9b690d76eedf
Parent:
29:b6af04b77a56
--- a/WiconnectSerial.cpp	Mon Oct 27 14:16:03 2014 -0700
+++ b/WiconnectSerial.cpp	Mon Nov 03 23:48:38 2014 +0000
@@ -124,14 +124,14 @@
             {
                 if(timeoutMs == 0)
                 {
-                    if(timeoutTimer.readMs() > 0)
+                    if(timeoutTimer.timedOut(timeoutMs))
                     {
                         goto exit;
                     }
                 }
                 else
                 {
-                    if(timeoutTimer.readMs() >= timeoutMs)
+                    if(timeoutTimer.timedOut(timeoutMs))
                     {
                         goto exit;
                     }
@@ -168,7 +168,7 @@
                 timeoutTimer.reset();
                 while(rxBuffer->count == 0)
                 {
-                    if(timeoutTimer.readMs() >= timeoutMs)
+                    if(timeoutTimer.timedOut(timeoutMs))
                     {
                         goto exit;
                     }