From 1182c993b54525d476ab4f7c82970d85d2294b72 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 21 Jul 2026 17:20:45 -0400 Subject: [PATCH] Update transmit.py fix def --- transmit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transmit.py b/transmit.py index b6339162..c278f148 100644 --- a/transmit.py +++ b/transmit.py @@ -17,7 +17,7 @@ def output(pin, value): system(command) print(command) -def uptime_seconds() +def uptime_seconds(): try: system("sudo cat /proc/uptime > /home/pi/CubeSatSim/uptime") file = open("/home/pi/CubeSatSim/uptime") @@ -26,7 +26,7 @@ def uptime_seconds() uptime = float(up) print(uptime) file.close() - return(uptime) + return uptime except Exception as e: print(f"An error occurred: {e}") print("uptime_seconds failed")