Update rpitx.py fix bug in tx_pl

beta-pl
Alan Johnston 2 years ago committed by GitHub
parent 0b28433ce4
commit 08f9505e48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -335,15 +335,15 @@ if __name__ == "__main__":
print(rx) print(rx)
if len(config) > 9: if len(config) > 9:
rxpl = float(config[9]) rxpl = float(config[9])
print(rxpl) # print(rxpl)
print( "{:.0f}".format(rxpl)) # print( "{:.0f}".format(rxpl))
rxpl_value = "{:.0f}".format(rxpl) rxpl_value = "{:.0f}".format(rxpl)
print(rxpl_value) print(rxpl_value)
if len(config) > 10: if len(config) > 10:
txpl = float(config[10]) txpl = float(config[10])
print(txpl) # print(txpl)
print( "{:.0f}".format(txpl)) # print( "{:.0f}".format(txpl))
rxpl_value = "{:.0f}".format(txpl) txpl_value = "{:.0f}".format(txpl)
print(txpl_value) print(txpl_value)
print(config) print(config)
print print

Loading…
Cancel
Save

Powered by TurnKey Linux.