From 2f370285d0db4fd48088f0792f4d8436fcd95ed9 Mon Sep 17 00:00:00 2001 From: liquidraver <504870+liquidraver@users.noreply.github.com> Date: Sat, 4 Jul 2026 16:18:09 +0200 Subject: [PATCH] fix build warning --- zephcore/helpers/ui-button/ui_task.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zephcore/helpers/ui-button/ui_task.c b/zephcore/helpers/ui-button/ui_task.c index 445ef3b..8ee950e 100644 --- a/zephcore/helpers/ui-button/ui_task.c +++ b/zephcore/helpers/ui-button/ui_task.c @@ -940,8 +940,10 @@ void ui_set_radio_stats(uint32_t packets_rx, uint32_t packets_tx, uint32_t packets_err) { struct ui_state *s = get_state(); +#ifdef CONFIG_ZEPHCORE_UI_DISPLAY bool activity_changed = packets_rx != s->lora_packets_rx || packets_tx != s->lora_packets_tx; +#endif s->lora_packets_rx = packets_rx; s->lora_packets_tx = packets_tx;