summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index e21d203..a63eb7d 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -142,11 +142,18 @@ static bool dbg_os(void)
usage = thread_stack_usage(thread);
status = thread_get_status(thread);
+# ifdef HAVE_PRIORITY_SCHEDULING
snprintf(buf, 32, "(%d) %c%c %d %s: %d%%", core,
(status == STATE_RUNNING) ? '*' : ' ',
thread_status_char(status),
cores[CURRENT_CORE].threads[i].priority,
cores[core].threads[i].name, usage);
+# else
+ snprintf(buf, 32, "(%d) %c%c %s: %d%%", core,
+ (status == STATE_RUNNING) ? '*' : ' ',
+ thread_status_char(status),
+ cores[core].threads[i].name, usage);
+# endif
lcd_puts(0, ++line, buf);
}
}