Skip to content

Commit

Permalink
AP_HAL_ESP32: move scheduler stats display behind SCHEDDEBUG
Browse files Browse the repository at this point in the history
It takes ~100ms and causes noticeable control glitches.
  • Loading branch information
tpwrules committed Nov 22, 2024
1 parent fd8c470 commit 5398f1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ESP32/Scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 5398f1a

Please sign in to comment.