Relabel ChibiOS core free bytes.

This commit is contained in:
Jared Boone 2016-02-12 13:51:14 -08:00
parent 937dad62ee
commit c72a443738
2 changed files with 8 additions and 8 deletions

View File

@ -35,8 +35,8 @@ namespace ui {
DebugMemoryView::DebugMemoryView(NavigationView& nav) { DebugMemoryView::DebugMemoryView(NavigationView& nav) {
add_children({ { add_children({ {
&text_title, &text_title,
&text_label_m0_free, &text_label_m0_core_free,
&text_label_m0_free_value, &text_label_m0_core_free_value,
&text_label_m0_heap_fragmented_free, &text_label_m0_heap_fragmented_free,
&text_label_m0_heap_fragmented_free_value, &text_label_m0_heap_fragmented_free_value,
&text_label_m0_heap_fragments, &text_label_m0_heap_fragments,
@ -44,8 +44,8 @@ DebugMemoryView::DebugMemoryView(NavigationView& nav) {
&button_done &button_done
} }); } });
const auto m0_free = chCoreStatus(); const auto m0_core_free = chCoreStatus();
text_label_m0_free_value.set(to_string_dec_uint(m0_free, 5)); text_label_m0_core_free_value.set(to_string_dec_uint(m0_core_free, 5));
size_t m0_fragmented_free_space = 0; size_t m0_fragmented_free_space = 0;
const auto m0_fragments = chHeapStatus(NULL, &m0_fragmented_free_space); const auto m0_fragments = chHeapStatus(NULL, &m0_fragmented_free_space);

View File

@ -49,12 +49,12 @@ private:
"Memory", "Memory",
}; };
Text text_label_m0_free { Text text_label_m0_core_free {
{ 0, 128, 104, 16 }, { 0, 128, 144, 16 },
"M0 Free Bytes", "M0 Core Free Bytes",
}; };
Text text_label_m0_free_value { Text text_label_m0_core_free_value {
{ 200, 128, 40, 16 }, { 200, 128, 40, 16 },
}; };