Skip to content

Commit

Permalink
Add ledheartbeat change event
Browse files Browse the repository at this point in the history
  • Loading branch information
garthvh committed Aug 8, 2024
1 parent 6f2e162 commit f6c95fe
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 f6c95fe

Please sign in to comment.