Skip to content

Commit

Permalink
Add the maximum memory used by LVGL in SystemInfo app. This will help…
Browse files Browse the repository at this point in the history
… the developers to size the memory buffer allocated to lvgl. (#408)
  • Loading branch information
JF002 authored Jun 1, 2021
1 parent 1b6acde commit 79f0fcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/displayapp/screens/SystemInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen3() {
"#444444 BLE MAC#\n"
" %02x:%02x:%02x:%02x:%02x:%02x"
"\n"
"#444444 Memory#\n"
"#444444 LVGL Memory#\n"
" #444444 used# %d (%d%%)\n"
" #444444 max used# %d\n"
" #444444 frag# %d%%\n"
" #444444 free# %d"
"\n"
Expand All @@ -189,6 +190,7 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen3() {
bleAddr[0],
(int) mon.total_size - mon.free_size,
mon.used_pct,
mon.max_used,
mon.frag_pct,
(int) mon.free_biggest_size,
0);
Expand Down

0 comments on commit 79f0fcb

Please sign in to comment.