add optional debug logging to see which OSThread / loops have what delays

This commit is contained in:
Links2004
2025-09-24 16:56:09 +02:00
parent 91e2e3f0e8
commit 0b4a28866b
3 changed files with 7 additions and 1 deletions

View File

@@ -90,7 +90,9 @@ void OSThread::run()
if (heap < newHeap)
LOG_HEAP("++++++ Thread %s freed heap %d -> %d (%d) ++++++", ThreadName.c_str(), heap, newHeap, newHeap - heap);
#endif
#ifdef DEBUG_LOOP_TIMING
LOG_DEBUG("====== Thread next run in: %d", newDelay);
#endif
runned();
if (newDelay >= 0)