From e92fa847f9b97b1a7284ea2bf1ad2dedeb6628ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Wed, 12 Feb 2025 16:22:21 +0100 Subject: [PATCH] Don't show options that are disabled by chip --- src/tui.rs | 1 + template/template.yaml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tui.rs b/src/tui.rs index 13c5cf8..fe73cf2 100644 --- a/src/tui.rs +++ b/src/tui.rs @@ -101,6 +101,7 @@ impl Repository { level .iter() + .filter(|v| v.chips().is_empty() || v.chips().contains(&self.config.chip)) .map(|v| { ( self.config.is_active(v), diff --git a/template/template.yaml b/template/template.yaml index 66c7f9b..4261ce3 100644 --- a/template/template.yaml +++ b/template/template.yaml @@ -13,7 +13,7 @@ options: - !Option name: wifi display_name: Enable Wi-Fi via the esp-wifi crate. - help: Not available on ESP32-H2. esp-wifi comes with no stability guarantees at this time. + help: esp-wifi comes with no stability guarantees at this time. requires: - alloc - unstable-hal @@ -28,7 +28,7 @@ options: - !Option name: ble display_name: Enable BLE via the esp-wifi crate. - help: Not available on ESP32-S2. esp-wifi comes with no stability guarantees at this time. + help: esp-wifi comes with no stability guarantees at this time. requires: - alloc - unstable-hal