From 4181561d651693c03b04df3127cfd6c52d08122f Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 14 Oct 2023 09:20:57 -0400 Subject: [PATCH] Update rpitx.py added global --- rpitx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rpitx.py b/rpitx.py index 8754e9cb..96adeddc 100644 --- a/rpitx.py +++ b/rpitx.py @@ -12,6 +12,7 @@ from PIL import Image, ImageDraw, ImageFont, ImageColor def battery_saver_check(): try: + global txc f = open("/home/pi/CubeSatSim/battery_saver") f.close() txc = False