mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-10 10:17:05 +01:00
wifi: cannot depend on the sleep value
This commit is contained in:
@@ -206,7 +206,7 @@ ActionsQueue& actions() {
|
||||
// TODO(esp32): Null mode turns off radio, no need for these
|
||||
|
||||
bool sleep() {
|
||||
if ((opmode() == ::wifi::OpmodeNull) && (wifi_fpm_get_sleep_type() == NONE_SLEEP_T)) {
|
||||
if (opmode() == ::wifi::OpmodeNull) {
|
||||
wifi_fpm_set_sleep_type(MODEM_SLEEP_T);
|
||||
yield();
|
||||
wifi_fpm_open();
|
||||
|
||||
Reference in New Issue
Block a user