formatting

This commit is contained in:
Michael Clemens 2021-10-06 13:20:28 +01:00
parent 5b486ac433
commit 25987cdc4d

View File

@ -21,7 +21,7 @@ bands = {
'60': '8',
'80': '9',
'160': '10'
}
}
vlcd = {
'STA': '-',
@ -32,7 +32,7 @@ vlcd = {
'AVG': '-',
'SWR': '-',
'TMP': '-'
}
}
# sends a command and an optional parameter to the
# Hardrock-50 via the serial interface
@ -94,7 +94,7 @@ def main(argv):
print("\nEXAMPLES:")
print(" Change the band to 12m: # ./hr50ctl.py -b 12")
print(" Change the keying method to PTT: # ./hr50ctl.py -k ptt")
print(" Change the band to 6m and tune: # ./hr50ctl.py -b 6 -t ")
print(" Change the band to 6m and tune: # ./hr50ctl.py -b 6 -t\n")
sys.exit()
elif opt == "-b":
if arg in bands:
@ -114,10 +114,8 @@ def main(argv):
# print info to stdout
table = PrettyTable(['1', '2', '3', '4'])
table.add_row([
#"STA: " + str_color(vlcd["STA"],"green"),
"STA: " + vlcd["STA"],
"PTT: " + vlcd["PTT"],
#"BND: " + str_color(vlcd["BND"],"yellow"),
"BND: " + vlcd["BND"],
"VLT: " + vlcd["VLT"]])
table.add_row([