From a28865683cdd7fc8b08575110b02d9e68e42e938 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 13 Aug 2023 09:04:14 -0400 Subject: [PATCH] Update rpitx.py to use different file pointer --- rpitx.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpitx.py b/rpitx.py index f9f3ef4c..88156160 100644 --- a/rpitx.py +++ b/rpitx.py @@ -577,11 +577,11 @@ if __name__ == "__main__": try: command_count += 1 - file = open("/home/pi/CubeSatSim/command_count.txt", "w") - string = file.write(str(command_count)) + filec = open("/home/pi/CubeSatSim/command_count.txt", "w") + string = filec.write(str(command_count)) except: if (debug_mode == 1): - print("Can't write command_count file") + print("Can't write command_count file!") print("Command_count: ") print(command_count)