Update rpitx.py formatting of tx and rx frequency

beta-v1.3.1.1-sim
Alan Johnston 2 years ago committed by GitHub
parent d7b182c1ef
commit 8030080c19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -279,12 +279,20 @@ if __name__ == "__main__":
else: else:
sq = '0' sq = '0'
if len(config) > 6: if len(config) > 6:
tx = config[6] # tx = config[6]
txf = float(config[6])
print(txf)
# print( "{:.4f}".format(txf))
tx = "{:.4f}".format(txf)
print(tx) print(tx)
else: else:
tx = '434.9000' tx = '434.9000'
if len(config) > 7: if len(config) > 7:
rx = config[7] # rx = config[7]
rxf = float(config[7])
print(rxf)
# print( "{:.4f}".format(rxf))
rx = "{:.4f}".format(rxf)
print(rx) print(rx)
else: else:
rx = '435.0000' rx = '435.0000'

Loading…
Cancel
Save

Powered by TurnKey Linux.