read .mode file

pull/93/head
alanbjohnston 5 years ago committed by GitHub
parent 27875e5bca
commit c418a21f54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -32,6 +32,14 @@ GPIO.output(27, 0)
print(transmit)
try:
file = open("/home/pi/CubeSatSim/.mode")
mode = file.read(1)
except:
mode = "f"
print("Mode char is: ")
print(mode)
try:
file = open("/home/pi/CubeSatSim/sim.cfg")
callsign = file.readline().split(" ")[0]

Loading…
Cancel
Save

Powered by TurnKey Linux.