PR #2358 added wakeup from deep sleep by setting a GPIO pin. However not all GPIOs are valid wakeup pins and could result in a deep sleep without any way to wake up. This PR attempts to ensure that only a valid RTC GPIO is selected before sending the device into deep sleep.
PR #2358 added wakeup from deep sleep by setting a GPIO pin. However not all GPIOs are valid wakeup pins and could result in a deep sleep without any way to wake up. This PR attempts to ensure that only a valid RTC GPIO is selected before sending the device into deep sleep.