From 28105c37bc9e8641f658b2673d4416f59cb9d0d6 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 13 Aug 2023 09:58:01 -0400 Subject: [PATCH] fix aprs command_count write --- rpitx.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpitx.py b/rpitx.py index cb657d0a..94f1eeb8 100644 --- a/rpitx.py +++ b/rpitx.py @@ -219,7 +219,9 @@ if __name__ == "__main__": try: command_count += 1 filec = open("/home/pi/CubeSatSim/command_count.txt", "w") - string = filec.write(str(command_count_string)) + command_count_string = str(command_count) + print(command_count_string) + string = filec.write(command_count_string) filec.close() except: if (debug_mode == 1):