Merge remote-tracking branch 'refs/remotes/origin/pki'

This commit is contained in:
Garth Vander Houwen 2024-08-14 17:05:38 -07:00
commit ad53819397

View file

@ -210,6 +210,7 @@ enum ModemPresets: Int, CaseIterable, Identifiable {
case medFast = 4
case shortSlow = 5
case shortFast = 6
case shortTurbo = 8
var id: Int { self.rawValue }
var description: String {
@ -230,6 +231,8 @@ enum ModemPresets: Int, CaseIterable, Identifiable {
return "Short Range - Slow"
case .shortFast:
return "Short Range - Fast"
case .shortTurbo:
return "Short Range - Turbo"
}
}
var name: String {
@ -250,6 +253,8 @@ enum ModemPresets: Int, CaseIterable, Identifiable {
return "ShortSlow"
case .shortFast:
return "ShortFast"
case .shortTurbo:
return "ShortTurbo"
}
}
func snrLimit() -> Float {
@ -270,6 +275,8 @@ enum ModemPresets: Int, CaseIterable, Identifiable {
return -10
case .shortFast:
return -7.5
case .shortTurbo:
return -7.5
}
}
func protoEnumValue() -> Config.LoRaConfig.ModemPreset {
@ -290,6 +297,8 @@ enum ModemPresets: Int, CaseIterable, Identifiable {
return Config.LoRaConfig.ModemPreset.shortSlow
case .shortFast:
return Config.LoRaConfig.ModemPreset.shortFast
case .shortTurbo:
return Config.LoRaConfig.ModemPreset.shortTurbo
}
}
}