From 1a810cfb33c4f1f57243cd0b8a5ac539e341f01d Mon Sep 17 00:00:00 2001 From: oopsbagel Date: Wed, 23 Jul 2025 15:28:54 -0700 Subject: [PATCH] generic_framebuffer: show status when ui_level!=0 Unless ui_level = 0 (invisible mode), display the status bar on framebuffer displays even when running in demo mode. Fixes #445 --- daemon/src/display/generic_framebuffer.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/daemon/src/display/generic_framebuffer.rs b/daemon/src/display/generic_framebuffer.rs index 132e14f..e5e6a96 100644 --- a/daemon/src/display/generic_framebuffer.rs +++ b/daemon/src/display/generic_framebuffer.rs @@ -179,9 +179,7 @@ pub fn update_ui( } match display_level { - 2 => { - fb.draw_gif(img.unwrap()); - } + 2 => fb.draw_gif(img.unwrap()), 3 => fb.draw_img(img.unwrap()), 128 => { fb.draw_line(Color::Cyan, 128); @@ -190,12 +188,11 @@ pub fn update_ui( fb.draw_line(Color::Pink, 50); fb.draw_line(Color::Cyan, 25); } - _ => { - // this branch id for ui_level 1, which is also the default if an - // unknown value is used - fb.draw_line(display_color, 2); - } + // this branch id for ui_level 1, which is also the default if an + // unknown value is used + _ => {} }; + fb.draw_line(display_color, 2); sleep(Duration::from_millis(1000)); } });