debug print thread count. max_threads is 32

pull/2051/head
Thomas Göttgens 2022-12-02 12:20:21 +01:00
rodzic a0c1e9cdc6
commit feb7181767
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -284,7 +284,7 @@ void Power::readPowerStatus()
powerStatus2.getIsCharging(), powerStatus2.getBatteryVoltageMv(), powerStatus2.getBatteryChargePercent());
newStatus.notifyObservers(&powerStatus2);
#ifdef DEBUG_HEAP
DEBUG_MSG("Heap status: %d/%d bytes free\n", ESP.getFreeHeap(), ESP.getHeapSize());
DEBUG_MSG("Heap status: %d/%d bytes free, running %d threads\n", ESP.getFreeHeap(), ESP.getHeapSize(), concurrency::mainController.size(false));
#endif
// If we have a battery at all and it is less than 10% full, force deep sleep if we have more than 3 low readings in a row