From 808e5e51923693913ba0a49f3744cf6cba1f1cef Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Wed, 16 Dec 2020 11:57:40 +0100 Subject: [PATCH] bugfix no sleep while joining --- src/reset.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/reset.cpp b/src/reset.cpp index 401a5911..f740d002 100644 --- a/src/reset.cpp +++ b/src/reset.cpp @@ -71,9 +71,10 @@ void enter_deepsleep(const uint64_t wakeup_sec = 60, gpio_num_t wakeup_gpio = GPIO_NUM_MAX) { #if (HAS_LORA) - if (!LMIC.devaddr) + if (!LMIC.devaddr) { ESP_LOGI(TAG, "Can't go to sleep while joining"); - return; + return; + } #endif int i;