mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Adjust precision on channel form
This commit is contained in:
parent
ec2df295d1
commit
0fe00b0db0
1 changed files with 4 additions and 2 deletions
|
|
@ -202,7 +202,9 @@ struct ChannelForm: View {
|
|||
}
|
||||
.onChange(of: channelKeySize) { _ in
|
||||
if channelKeySize == -1 {
|
||||
preciseLocation = false
|
||||
if channelRole == 0 {
|
||||
preciseLocation = false
|
||||
}
|
||||
channelKey = "AQ=="
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue