Skip to content

Commit

Permalink
Merge pull request #856 from meshtastic/heartbeat-save
Browse files Browse the repository at this point in the history
Add ledheartbeat change event
  • Loading branch information
garthvh authored Aug 8, 2024
2 parents 6f2e162 + f6c95fe commit 64c69ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Meshtastic/Views/Settings/Config/DeviceConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion protobufs

0 comments on commit 64c69ab

Please sign in to comment.