From 0023db4496b22ecb2b5276db1d4860e9e702af52 Mon Sep 17 00:00:00 2001 From: Aaron Shaw Date: Fri, 6 Jan 2023 00:47:12 +0000 Subject: [PATCH] Update pwrite_text.py --- RTC-Hat-Examples/RTCreboot/pwrite_text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RTC-Hat-Examples/RTCreboot/pwrite_text.py b/RTC-Hat-Examples/RTCreboot/pwrite_text.py index 1543455..bd607c3 100644 --- a/RTC-Hat-Examples/RTCreboot/pwrite_text.py +++ b/RTC-Hat-Examples/RTCreboot/pwrite_text.py @@ -25,7 +25,7 @@ def write_text(papirus, text, x=0, y=0, save=False, file='save.bmp'): global image, draw, font - if os.path.isfile(ldfile): + if load and os.path.isfile(ldfile): image = Image.open(ldfile) image.load() os.remove(ldfile)