aboutsummaryrefslogtreecommitdiff
path: root/cc3200/mods/modpyb.c
diff options
context:
space:
mode:
authordanicampora2015-02-23 14:39:11 +0100
committerdanicampora2015-02-23 15:02:57 +0100
commit70b31608719e77b810017619ef41ef0783126483 (patch)
treee81a6a4f7a9211f971c31de602e20fecb1ec7ff9 /cc3200/mods/modpyb.c
parent379a3fa305fd8b032d4232a518d96649439743b4 (diff)
cc3200: Introduce MICROPY_PORT_HAS_TELNET and MICROPY_PORT_HAS_FTP.
These definitions help on making modwlan.c usable by other ports with the CC3100.
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 fc65e61a8..33841d034 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();