mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Merge pull request #856 from meshtastic/heartbeat-save
Add ledheartbeat change event
This commit is contained in:
commit
64c69abf44
2 changed files with 6 additions and 1 deletions
|
|
@ -298,6 +298,11 @@ struct DeviceConfig: View {
|
|||
if newTzdef != node!.deviceConfig!.tzdef { hasChanges = true }
|
||||
}
|
||||
}
|
||||
.onChange(of: ledHeartbeatEnabled) { newLedHeartbeatEnabled in
|
||||
if node != nil && node?.deviceConfig != nil {
|
||||
if newLedHeartbeatEnabled != node!.deviceConfig!.ledHeartbeatEnabled { hasChanges = true }
|
||||
}
|
||||
}
|
||||
}
|
||||
func setDeviceValues() {
|
||||
self.deviceRole = Int(node?.deviceConfig?.role ?? 0)
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 976748839fafcf0049bb364fe2c7226a194d18a9
|
||||
Subproject commit 2fa7d6a4b702fcd58b54b0d1d6e4b3b85164f649
|
||||
Loading…
Add table
Add a link
Reference in a new issue