strip unused esp32 deps, fix render loop power waste

This commit is contained in:
2026-06-19 13:22:12 +02:00
parent 27c1fe3f37
commit 5bcf4c4e0d
3 changed files with 2 additions and 15 deletions

View File

@@ -47,7 +47,8 @@ pub fn run(
display.flush().unwrap();
loop {
let timeout = RENDER_POLL_INTERVAL.min(SCROLL_TICK);
let has_scrollers = widgets.values().any(|c| c.scroll.is_active());
let timeout = if has_scrollers { SCROLL_TICK } else { RENDER_POLL_INTERVAL };
match rx.recv_timeout(timeout) {
Ok(RenderEvent::ConnectionStatus(status)) => {
if status != connected {