Skip to content

Commit

Permalink
Merge pull request #909 from meshtastic/packets-bad
Browse files Browse the repository at this point in the history
Packets bad
  • Loading branch information
garthvh authored Sep 1, 2024
2 parents 9264559 + bff9903 commit 2441255
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -1428,6 +1428,9 @@
},
"Bad" : {

},
"Bad Packets: %d" : {

},
"Bandwidth" : {

Expand Down Expand Up @@ -6725,9 +6728,6 @@
},
"Drag & Drop is the recommended way to update firmware for NRF devices. If your iPhone or iPad is USB-C it will work with your regular USB-C charging cable, for lightning devices you need the Apple Lightning to USB camera adaptor." : {

},
"Dupe / Bad Packets: %d" : {

},
"echo" : {
"localizations" : {
Expand Down
2 changes: 1 addition & 1 deletion Meshtastic/Views/Bluetooth/Connect.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ struct Connect: View {
.font(.caption)
.fontWeight(.medium)
.foregroundStyle(.secondary)
Text("Dupe / Bad Packets: \(localStats?.numPacketsRxBad ?? 0)")
Text("Bad Packets: \(localStats?.numPacketsRxBad ?? 0)")
.font(.caption)
.fontWeight(.medium)
.foregroundStyle(.secondary)
Expand Down
6 changes: 4 additions & 2 deletions Meshtastic/Views/Settings/Channels/ChannelForm.swift
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ struct ChannelForm: View {
}
.onChange(of: channelKeySize) { _ in
if channelKeySize == -1 {
preciseLocation = false
if channelRole == 0 {
preciseLocation = false
}
channelKey = "AQ=="
}
}
Expand All @@ -211,7 +213,7 @@ struct ChannelForm: View {
}
.onChange(of: preciseLocation) { loc in
if loc == true {
if channelKey == "AQ==" {
if channelKey == "AQ==" && channelRole == 0 {
preciseLocation = false
} else {
positionPrecision = 32
Expand Down
4 changes: 2 additions & 2 deletions Widgets/WidgetsLiveActivity.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ struct WidgetsLiveActivity: Widget {
.font(.caption)
.foregroundStyle(.secondary)
.fixedSize()
Text("Dupe / Bad \(context.state.badReceivedPackets)")
Text("Bad \(context.state.badReceivedPackets)")
.font(.caption)
.foregroundStyle(.secondary)
.fixedSize()
Expand Down Expand Up @@ -215,7 +215,7 @@ struct NodeInfoView: View {
.foregroundStyle(.secondary)
.opacity(isLuminanceReduced ? 0.8 : 1.0)
.fixedSize()
Text("Dupe / Bad Packets: \(badReceivedPackets)")
Text("Bad Packets: \(badReceivedPackets)")
.font(.caption)
.fontWeight(.medium)
.foregroundStyle(.secondary)
Expand Down

0 comments on commit 2441255

Please sign in to comment.