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:
36:a30cbf4bdb13
Parent:
29:b6af04b77a56
--- a/WiconnectSerial.cpp	Thu Nov 27 00:25:09 2014 -0800
+++ b/WiconnectSerial.cpp	Thu Nov 27 00:46:50 2014 -0800
@@ -91,6 +91,7 @@
 #endif
 }
 
+
 /*************************************************************************************************/
 void WiconnectSerial::initialize(void)
 {
@@ -124,14 +125,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 +169,7 @@
                 timeoutTimer.reset();
                 while(rxBuffer->count == 0)
                 {
-                    if(timeoutTimer.readMs() >= timeoutMs)
+                    if(timeoutTimer.timedOut(timeoutMs))
                     {
                         goto exit;
                     }