summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/mods/modpyb.c
diff options
context:
space:
mode:
Diffstat (limited to 'cc3200/mods/modpyb.c')
-rw-r--r--cc3200/mods/modpyb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc3200/mods/modpyb.c b/cc3200/mods/modpyb.c
index fc65e61a8f..33841d0344 100644
--- a/cc3200/mods/modpyb.c
+++ b/cc3200/mods/modpyb.c
@@ -76,8 +76,10 @@ extern OsiTaskHandle xSimpleLinkSpawnTaskHndl;
/// Resets the pyboard in a manner similar to pushing the external RESET
/// button.
STATIC mp_obj_t pyb_hard_reset(void) {
+#if (MICROPY_PORT_HAS_TELNET || MICROPY_PORT_HAS_FTP)
// disable wlan services
wlan_stop_servers();
+#endif
wlan_stop();
// perform a SoC reset
PRCMSOCReset();