From c72a4437385b7d58b8686d37b1e2bb1a3c01251f Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Fri, 12 Feb 2016 13:51:14 -0800 Subject: [PATCH] Relabel ChibiOS core free bytes. --- firmware/application/ui_debug.cpp | 8 ++++---- firmware/application/ui_debug.hpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/firmware/application/ui_debug.cpp b/firmware/application/ui_debug.cpp index 4b76080f2..64b693df5 100644 --- a/firmware/application/ui_debug.cpp +++ b/firmware/application/ui_debug.cpp @@ -35,8 +35,8 @@ namespace ui { DebugMemoryView::DebugMemoryView(NavigationView& nav) { add_children({ { &text_title, - &text_label_m0_free, - &text_label_m0_free_value, + &text_label_m0_core_free, + &text_label_m0_core_free_value, &text_label_m0_heap_fragmented_free, &text_label_m0_heap_fragmented_free_value, &text_label_m0_heap_fragments, @@ -44,8 +44,8 @@ DebugMemoryView::DebugMemoryView(NavigationView& nav) { &button_done } }); - const auto m0_free = chCoreStatus(); - text_label_m0_free_value.set(to_string_dec_uint(m0_free, 5)); + const auto m0_core_free = chCoreStatus(); + text_label_m0_core_free_value.set(to_string_dec_uint(m0_core_free, 5)); size_t m0_fragmented_free_space = 0; const auto m0_fragments = chHeapStatus(NULL, &m0_fragmented_free_space); diff --git a/firmware/application/ui_debug.hpp b/firmware/application/ui_debug.hpp index c54d08712..1406b90ee 100644 --- a/firmware/application/ui_debug.hpp +++ b/firmware/application/ui_debug.hpp @@ -49,12 +49,12 @@ private: "Memory", }; - Text text_label_m0_free { - { 0, 128, 104, 16 }, - "M0 Free Bytes", + Text text_label_m0_core_free { + { 0, 128, 144, 16 }, + "M0 Core Free Bytes", }; - Text text_label_m0_free_value { + Text text_label_m0_core_free_value { { 200, 128, 40, 16 }, };