AP_HAL_ESP32: move scheduler stats display behind SCHEDDEBUG
It takes ~100ms and causes noticeable control glitches.
This commit is contained in:
parent
fd8c470120
commit
5398f1a499
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user