mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 23:09:26 -05:00
Relabel ChibiOS core free bytes.
This commit is contained in:
parent
937dad62ee
commit
c72a443738
@ -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);
|
||||
|
@ -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 },
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user