bugfix no sleep while joining
This commit is contained in:
parent
973635e0e5
commit
808e5e5192
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user