This commit is contained in:
Garth Vander Houwen 2024-02-05 23:48:23 -08:00
parent c3f4923531
commit b0272e0578
2 changed files with 10 additions and 9 deletions

View file

@ -279,6 +279,7 @@ func upsertPositionPacket (packet: MeshPacket, context: NSManagedObjectContext)
}
fetchedNode[0].snr = packet.rxSnr
fetchedNode[0].rssi = packet.rxRssi
fetchedNode[0].viaMqtt = packet.viaMqtt
fetchedNode[0].positions = mutablePositions.copy() as? NSOrderedSet
do {

View file

@ -89,14 +89,21 @@ struct NodeListItem: View {
}
}
}
if node.channel > 0 {
HStack {
HStack {
if node.channel > 0 {
Image(systemName: "fibrechannel")
.font(.callout)
.symbolRenderingMode(.hierarchical)
Text("Channel: \(node.channel)")
.font(.callout)
}
if node.viaMqtt && connectedNode != node.num {
Image(systemName: "network")
.symbolRenderingMode(.hierarchical)
.font(.callout)
Text("Via MQTT")
.font(.callout)
}
}
if !connected {
HStack {
@ -129,13 +136,6 @@ struct NodeListItem: View {
.symbolRenderingMode(.hierarchical)
.font(.callout)
}
if node.viaMqtt {
Image(systemName: "network")
.symbolRenderingMode(.hierarchical)
.font(.callout)
Text("mqtt")
.font(.caption)
}
}
.padding(.top, 3)
}