reset.cpp: skip libpax_counter_stop() before sleep

This commit is contained in:
cyberman54 2021-04-08 13:58:38 +02:00
parent e299444a89
commit 0b85559358

View File

@ -111,10 +111,11 @@ void enter_deepsleep(const uint64_t wakeup_sec, gpio_num_t wakeup_gpio) {
if (!GPIO_IS_VALID_GPIO(wakeup_gpio)) if (!GPIO_IS_VALID_GPIO(wakeup_gpio))
wakeup_gpio = GPIO_NUM_MAX; wakeup_gpio = GPIO_NUM_MAX;
// stop further enqueuing of senddata and MAC processing // stop further enqueuing of senddata and MAC processing
libpax_counter_stop(); // -> skipped, because shutting down bluedroid stack tends to crash
// libpax_counter_stop();
// switch off radio and other power consuming hardware // switch off any power consuming hardware
#if (HAS_SDS011) #if (HAS_SDS011)
sds011_sleep(); sds011_sleep();
#endif #endif