Skip to content

Commit

Permalink
Update pwrite_text.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shawaj authored Jan 6, 2023
1 parent 82b588a commit 0023db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RTC-Hat-Examples/RTCreboot/pwrite_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0023db4

Please sign in to comment.