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

Loading…
Cancel
Save

Powered by TurnKey Linux.