bugfix no sleep while joining

This commit is contained in:
cyberman54 2020-12-16 11:57:40 +01:00
parent 973635e0e5
commit 808e5e5192

View File

@ -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;
}
#endif
int i;