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,20 +263,23 @@ debug_mode = 0 #no debugging rpitx
if __name__ == "__main__":
mode = "x"
if (len(sys.argv)) > 1:
# print("There are arguments!")
if (('d' == sys.argv[1]) or ('-d' in sys.argv[1])):
debug_mode = 1
else if (('a' == sys.argv[1]) or ('-a' in sys.argv[1])):
mode = "a"
print("Forcing APRS mode")
print(transmit)
try:
file = open("/home/pi/CubeSatSim/.mode")
mode = file.read(1)
except:
mode = "f"
if (debug_mode == 1):
print("Can't open .mode file, defaulting to FSK")
if ( mode == "x"):
try:
file = open("/home/pi/CubeSatSim/.mode")
mode = file.read(1)
except:
mode = "f"
if (debug_mode == 1):
print("Can't open .mode file, defaulting to FSK")
print("Mode is: ")
print(mode)

Loading…
Cancel
Save

Powered by TurnKey Linux.