AP_HAL_ESP32: move scheduler stats display behind SCHEDDEBUG

It takes ~100ms and causes noticeable control glitches.
This commit is contained in:
Thomas Watson 2024-09-01 22:11:33 -05:00 committed by Thomas Watson
parent fd8c470120
commit 5398f1a499

View File

@ -565,7 +565,9 @@ void IRAM_ATTR Scheduler::_main_thread(void *arg)
sched->delay_microseconds(250);
// run stats periodically
#ifdef SCHEDDEBUG
sched->print_stats();
#endif
sched->print_main_loop_rate();
if (ESP_OK != esp_task_wdt_reset()) {