From c437900a4958fe5f13eb99c9a6b16719df514159 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 21 Apr 2013 20:57:12 +1000 Subject: [PATCH] AP_Scheduler: added SCHED_DEBUG=2 used to show overruns and slips --- libraries/AP_Scheduler/AP_Scheduler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Scheduler/AP_Scheduler.cpp b/libraries/AP_Scheduler/AP_Scheduler.cpp index c42e081687..71243f5515 100644 --- a/libraries/AP_Scheduler/AP_Scheduler.cpp +++ b/libraries/AP_Scheduler/AP_Scheduler.cpp @@ -20,7 +20,7 @@ const AP_Param::GroupInfo AP_Scheduler::var_info[] PROGMEM = { // @Param: DEBUG // @DisplayName: Scheduler debug level // @Description: Set to non-zero to enable scheduler debug messages - // @Values: 0:Disabled,1:Enabled + // @Values: 0:Disabled,1:ShowSlipe,2:ShowOverruns // @User: Advanced AP_GROUPINFO("DEBUG", 0, AP_Scheduler, _debug, 0), AP_GROUPEND @@ -80,7 +80,7 @@ void AP_Scheduler::run(uint16_t time_available) if (time_taken > _task_time_allowed) { // the event overran! - if (_debug != 0) { + if (_debug > 1) { hal.console->printf_P(PSTR("Scheduler overrun task[%u] (%u/%u)\n"), (unsigned)i, (unsigned)time_taken,