Update rpitx.py changed from 30 to 45

beta-extra
Alan Johnston 1 year ago committed by GitHub
parent 1191973ab6
commit 9b0e6aac9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -238,13 +238,13 @@ if __name__ == "__main__":
system("cat /proc/uptime > /home/pi/CubeSatSim/uptime")
file = open("/home/pi/CubeSatSim/uptime")
up = file.read().split(" ")[0]
# print(up)
print(up)
uptime = float(up)
# print(uptime)
if (uptime < 30):
print("Uptime < 30 seconds")
print(uptime)
if (uptime < 45):
print("Uptime < 45 seconds")
else:
print("Uptime > 30 seconds")
print("Uptime > 45 seconds")
skip = True
file.close()
except:

Loading…
Cancel
Save

Powered by TurnKey Linux.