Tolerate slight variation in frequency readout
This commit is contained in:
parent
85c95dff1b
commit
d4e543a98f
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ def configureRadio (conf: RadioConfig):
|
|||
if coding_rate != node.localConfig.lora.coding_rate:
|
||||
changed = True
|
||||
node.localConfig.lora.coding_rate = coding_rate
|
||||
if override_frequency != node.localConfig.lora.override_frequency:
|
||||
if abs(override_frequency - node.localConfig.lora.override_frequency) > 1e-4: # Tolerate slight variation due to floating point precision and the way the radio tunes to the actual frequency
|
||||
changed = True
|
||||
node.localConfig.lora.override_frequency = override_frequency
|
||||
if tx_power != node.localConfig.lora.tx_power:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue