diff options
Diffstat (limited to 'cc3200/mods/pybsleep.c')
| -rw-r--r-- | cc3200/mods/pybsleep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc3200/mods/pybsleep.c b/cc3200/mods/pybsleep.c index 7e62418f4..4226e6d1c 100644 --- a/cc3200/mods/pybsleep.c +++ b/cc3200/mods/pybsleep.c @@ -52,6 +52,7 @@ #include "mpcallback.h" #include "mperror.h" #include "sleeprestore.h" +#include "serverstask.h" /****************************************************************************** DECLARE PRIVATE CONSTANTS @@ -429,7 +430,7 @@ STATIC void PRCMInterruptHandler (void) { pybsleep_wake_reason = PYB_SLP_WAKED_BY_GPIO; break; case PRCM_LPDS_TIMER: - // disable the timer as a wake-up source + // disable the timer as wake-up source pybsleep_data.timer_wake_pwrmode &= ~PYB_PWR_MODE_LPDS; MAP_PRCMLPDSWakeupSourceDisable(PRCM_LPDS_TIMER); mpcallback_handler(pybsleep_data.timer_lpds_wake_cb); @@ -593,6 +594,7 @@ STATIC mp_obj_t pyb_sleep_suspend (mp_obj_t self_in) { // do we need network wake-up? if (pybsleep_data.wlan_lpds_wake_cb) { MAP_PRCMLPDSWakeupSourceEnable (PRCM_LPDS_HOST_IRQ); + server_sleep_sockets(); } else { MAP_PRCMLPDSWakeupSourceDisable (PRCM_LPDS_HOST_IRQ); |
