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
Diff: internal/network/NetworkWebSetup.cpp
- Revision:
- 11:ea484e1b7fc4
- Parent:
- 8:1fad4ca6c6a4
- Child:
- 13:2b51f5267c92
--- a/internal/network/NetworkWebSetup.cpp Mon Aug 11 21:59:00 2014 -0700 +++ b/internal/network/NetworkWebSetup.cpp Tue Aug 12 02:34:46 2014 -0700 @@ -53,15 +53,11 @@ #ifdef WICONNECT_ASYNC_TIMER_ENABLED if(completeHandler_.isValid()) { - if(monitorTimer.isRunning()) - { - result = WICONNECT_MONITOR_NOT_AVAILABLE; - } - else - { - completeHandler = completeHandler_; - monitorTimer.start(this, &NetworkInterface::webSetupStatusMonitor, 1000); - } +#ifdef WICONNECT_ASYNC_TIMER_ENABLED + monitorTimer.stop(); +#endif + completeHandler = completeHandler_; + monitorTimer.start(this, &NetworkInterface::webSetupStatusMonitor, 1000); } #endif }