Browse Source

wifi: cannot depend on the sleep value

pull/2439/head
Maxim Prokhorov 3 years ago
parent
commit
22fbfbb6eb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/wifi.cpp

+ 1
- 1
code/espurna/wifi.cpp View File

@ -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();


Loading…
Cancel
Save