Skip to content

Commit

Permalink
fix equality check
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellee1019 committed Apr 12, 2024
1 parent 5159b99 commit 77461be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ def border(self, draw):

def rectangle(self, draw, pixels: list[int]):
draw.rectangle(pixels, outline="white")

def text(self, draw, start_pixel: list[int], message: str, font):
font_cls = CP437_FONT
if font is "LCD_FONT":
if font == "LCD_FONT":
font_cls = LCD_FONT
text(draw, start_pixel, message, fill="white", font=proportional(font_cls))

Expand Down

0 comments on commit 77461be

Please sign in to comment.