diff options
| author | danicampora | 2015-03-18 21:49:48 +0100 |
|---|---|---|
| committer | danicampora | 2015-03-18 21:55:08 +0100 |
| commit | 0e96d1b3f1cdcac48ef966d8517dea38dfff8cec (patch) | |
| tree | 9ef78f95fe760f98bcce7e317a9ddd3f41019eb9 /cc3200/mods/modwlan.c | |
| parent | f382f4442e38227a983ad0a966b00c6d42b3911f (diff) | |
cc3200: Add parameter to wlan_stop() for custom timeout values.
Diffstat (limited to 'cc3200/mods/modwlan.c')
| -rw-r--r-- | cc3200/mods/modwlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc3200/mods/modwlan.c b/cc3200/mods/modwlan.c index 6ba0d6173..d20fa3d5f 100644 --- a/cc3200/mods/modwlan.c +++ b/cc3200/mods/modwlan.c @@ -529,7 +529,7 @@ void wlan_update(void) { } // call this function to disable the complete WLAN subsystem before a system reset -void wlan_stop (void) { +void wlan_stop (uint32_t timeout) { if (wlan_obj.mode >= 0) { #if (MICROPY_PORT_HAS_TELNET || MICROPY_PORT_HAS_FTP) // Stop all other processes using the wlan engine @@ -539,7 +539,7 @@ void wlan_stop (void) { #endif sl_LockObjLock (&wlan_LockObj, SL_OS_WAIT_FOREVER); wlan_obj.mode = -1; - sl_Stop(SL_STOP_TIMEOUT); + sl_Stop(MAX(timeout, SL_STOP_TIMEOUT)); } } |
