Update transmit.py sudo for uptime

master-b-p-s
Alan Johnston 3 weeks ago committed by GitHub
parent 861aeee148
commit 5f486fd396
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -321,7 +321,7 @@ if __name__ == "__main__":
print("Pi Zero 2 not detected")
try:
system("cat /proc/uptime > /home/pi/CubeSatSim/uptime")
system("sudo cat /proc/uptime > /home/pi/CubeSatSim/uptime")
file = open("/home/pi/CubeSatSim/uptime")
up = file.read().split(" ")[0]
print(up)

Loading…
Cancel
Save

Powered by TurnKey Linux.