From 029bb170c286e03b07c556747e7e51ad44a43e44 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 13 Aug 2023 09:09:18 -0400 Subject: [PATCH] fixed command_count.txt read --- rpitx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpitx.py b/rpitx.py index 88156160..faf8b4bc 100644 --- a/rpitx.py +++ b/rpitx.py @@ -120,8 +120,8 @@ if __name__ == "__main__": print(command_tx) try: - file = open("/home/pi/CubeSatSim/command_count.txt") - string = file.read + file = open("/home/pi/CubeSatSim/command_count.txt", "r") + string = file.read() command_count = int(string) except: command_count = 0