Update rpitx.py add force APRS with a

beta-pl-cc
Alan Johnston 1 year ago committed by GitHub
parent 5362df4c48
commit 876c1ef0f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -263,13 +263,16 @@ debug_mode = 0 #no debugging rpitx
if __name__ == "__main__": if __name__ == "__main__":
mode = "x"
if (len(sys.argv)) > 1: if (len(sys.argv)) > 1:
# print("There are arguments!") # print("There are arguments!")
if (('d' == sys.argv[1]) or ('-d' in sys.argv[1])): if (('d' == sys.argv[1]) or ('-d' in sys.argv[1])):
debug_mode = 1 debug_mode = 1
else if (('a' == sys.argv[1]) or ('-a' in sys.argv[1])):
mode = "a"
print("Forcing APRS mode")
print(transmit) print(transmit)
if ( mode == "x"):
try: try:
file = open("/home/pi/CubeSatSim/.mode") file = open("/home/pi/CubeSatSim/.mode")
mode = file.read(1) mode = file.read(1)

Loading…
Cancel
Save

Powered by TurnKey Linux.