Update transmit.py use path for auto sim

master
Alan Johnston 1 week ago committed by GitHub
parent dbea139e0a
commit 56d5946a8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -8,6 +8,7 @@ from time import sleep
#import os
import sys
from os import system
from os import path
from PIL import Image, ImageDraw, ImageFont, ImageColor
import serial
import random
@ -352,11 +353,10 @@ if __name__ == "__main__":
# print(f"Error output of the command (stderr): {e.stderr}")
try:
file = open("/home/pi/CubeSatSim/sim_mode_auto")
if path.isfile("/home/pi/CubeSatSim/sim_mode_auto"):
print("Simulated telemetry mode automatically turned on!")
sim_mode = True
sim_config = True
file.close()
except:
if (debug_mode == 1):
print("/home/pi/CubeSatSim/sim_mode_auto not found")

Loading…
Cancel
Save

Powered by TurnKey Linux.