Skip to content

Commit

Permalink
wifi: cannot depend on the sleep value
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Apr 7, 2021
1 parent ae63e5f commit 22fbfbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/espurna/wifi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 22fbfbb

Please sign in to comment.