mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Ham mode values
This commit is contained in:
parent
af90966900
commit
3d2d0e8d6b
2 changed files with 6 additions and 0 deletions
|
|
@ -92,6 +92,8 @@
|
|||
<attribute name="frequencyOffset" optional="YES" attributeType="Float" defaultValueString="0" usesScalarValueType="YES"/>
|
||||
<attribute name="hopLimit" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/>
|
||||
<attribute name="modemPreset" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/>
|
||||
<attribute name="overrideDutyCycle" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
|
||||
<attribute name="overrideFrequency" optional="YES" attributeType="Float" defaultValueString="0.0" usesScalarValueType="YES"/>
|
||||
<attribute name="regionCode" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/>
|
||||
<attribute name="spreadFactor" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/>
|
||||
<attribute name="txEnabled" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
|
||||
|
|
|
|||
|
|
@ -327,6 +327,8 @@ func upsertLoRaConfigPacket(config: Meshtastic.Config.LoRaConfig, nodeNum: Int64
|
|||
newLoRaConfig.spreadFactor = Int32(config.spreadFactor)
|
||||
newLoRaConfig.codingRate = Int32(config.codingRate)
|
||||
newLoRaConfig.frequencyOffset = config.frequencyOffset
|
||||
newLoRaConfig.overrideFrequency = config.overrideFrequency
|
||||
newLoRaConfig.overrideDutyCycle = config.overrideDutyCycle
|
||||
newLoRaConfig.hopLimit = Int32(config.hopLimit)
|
||||
newLoRaConfig.txPower = Int32(config.txPower)
|
||||
newLoRaConfig.txEnabled = config.txEnabled
|
||||
|
|
@ -340,6 +342,8 @@ func upsertLoRaConfigPacket(config: Meshtastic.Config.LoRaConfig, nodeNum: Int64
|
|||
fetchedNode[0].loRaConfig?.spreadFactor = Int32(config.spreadFactor)
|
||||
fetchedNode[0].loRaConfig?.codingRate = Int32(config.codingRate)
|
||||
fetchedNode[0].loRaConfig?.frequencyOffset = config.frequencyOffset
|
||||
fetchedNode[0].loRaConfig?.overrideFrequency = config.overrideFrequency
|
||||
fetchedNode[0].loRaConfig?.overrideDutyCycle = config.overrideDutyCycle
|
||||
fetchedNode[0].loRaConfig?.hopLimit = Int32(config.hopLimit)
|
||||
fetchedNode[0].loRaConfig?.txPower = Int32(config.txPower)
|
||||
fetchedNode[0].loRaConfig?.txEnabled = config.txEnabled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue