stop device role save crash

This commit is contained in:
Garth Vander Houwen 2024-03-15 14:29:50 -07:00
parent 1769b63466
commit 8d6aa9e88b

View file

@ -23,7 +23,7 @@ struct DeviceConfig: View {
@State var serialEnabled = true
@State var debugLogEnabled = false
@State var rebroadcastMode = 0
@State var nodeInfoBroadcastSecs = 900
@State var nodeInfoBroadcastSecs = 10800
@State var doubleTapAsButtonPress = false
@State var isManaged = false
@ -176,6 +176,9 @@ struct DeviceConfig: View {
dc.buttonGpio = UInt32(buttonGPIO)
dc.buzzerGpio = UInt32(buzzerGPIO)
dc.rebroadcastMode = RebroadcastModes(rawValue: rebroadcastMode)?.protoEnumValue() ?? RebroadcastModes.all.protoEnumValue()
if nodeInfoBroadcastSecs < 0 {
nodeInfoBroadcastSecs = 10800
}
dc.nodeInfoBroadcastSecs = UInt32(nodeInfoBroadcastSecs)
dc.doubleTapAsButtonPress = doubleTapAsButtonPress
dc.isManaged = isManaged