Skip to content

Commit 0023db4

Browse files
authored
Update pwrite_text.py
1 parent 82b588a commit 0023db4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RTC-Hat-Examples/RTCreboot/pwrite_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def write_text(papirus, text, x=0, y=0,
2525
save=False, file='save.bmp'):
2626
global image, draw, font
2727

28-
if os.path.isfile(ldfile):
28+
if load and os.path.isfile(ldfile):
2929
image = Image.open(ldfile)
3030
image.load()
3131
os.remove(ldfile)

0 commit comments

Comments
 (0)