mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Handle location send interval of 0
This commit is contained in:
parent
9f7f59fa87
commit
61168e826c
1 changed files with 7 additions and 1 deletions
|
|
@ -143,7 +143,13 @@ struct AppSettings: View {
|
|||
ConnectedDevice(bluetoothOn: bleManager.isSwitchedOn, deviceConnected: bleManager.connectedPeripheral != nil, name: (bleManager.connectedPeripheral != nil) ? bleManager.connectedPeripheral.shortName : "?")
|
||||
})
|
||||
.onAppear {
|
||||
self.bleManager.context = context
|
||||
if provideLocationInterval <= 0 {
|
||||
provideLocationInterval = 30
|
||||
UserDefaults.provideLocationInterval = provideLocationInterval
|
||||
}
|
||||
if self.bleManager.context == nil {
|
||||
self.bleManager.context = context
|
||||
}
|
||||
}
|
||||
.onChange(of: blockRangeTest) { newBlockRangeTest in
|
||||
UserDefaults.blockRangeTest = newBlockRangeTest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue