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;