Skip to content

Commit

Permalink
Don't show options that are disabled by chip
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Feb 12, 2025
1 parent 552ac25 commit e92fa84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/tui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
4 changes: 2 additions & 2 deletions template/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e92fa84

Please sign in to comment.