Skip to content

Commit

Permalink
feat: Display addresses in the peripherals list
Browse files Browse the repository at this point in the history
  • Loading branch information
dzamlo committed Nov 23, 2023
1 parent 05c6087 commit 295a67a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tui/peripheral_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,10 @@ impl AppRoute for PeripheralList {
.map(|(i, peripheral)| {
let is_highlighted = Some(i) == self.list_state.selected();
ListItem::new(Span::from(format!(
"{}{}{}",
"{}{} ({}) {}",
if is_highlighted { "> " } else { " " },
peripheral.name,
peripheral.address,
match peripheral.rssi {
Some(rssi) => format!(" (rssi {rssi})"),
None => String::from(""),
Expand Down

0 comments on commit 295a67a

Please sign in to comment.