Update rpitx.py added file.close

beta-v1.3.1-python-sq
Alan Johnston 2 years ago committed by GitHub
parent 2551c3b0cd
commit 2783e455b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,6 +20,7 @@ def increment_mode():
# mode = "f"
if (debug_mode == 1):
print("Can't open .mode file") # , defaulting to FSK")
file.close()
print("Mode is: ")
print(mode)
if (mode == 'a'):
@ -254,6 +255,7 @@ if __name__ == "__main__":
callsign = "AMSAT"
if (debug_mode == 1):
print("Can't read callsign from sim.cfg file, defaulting to AMSAT")
file.close()
print(callsign)
GPIO.setmode(GPIO.BCM) # added to make Tx LED work on Pi 4
GPIO.setup(txLed, GPIO.OUT)

Loading…
Cancel
Save

Powered by TurnKey Linux.