From 518e8c219c7d41772b108730cc3252c1df381734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szabolcs=20Kolesz=C3=A1r?= Date: Fri, 26 Apr 2024 01:34:26 +0200 Subject: [PATCH] Fix incorrect use of assignment operator (=) instead of comparison operator (==) in draw method of ui/components.py --- pwnagotchi/ui/components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/ui/components.py b/pwnagotchi/ui/components.py index 763f510b..8537cddf 100644 --- a/pwnagotchi/ui/components.py +++ b/pwnagotchi/ui/components.py @@ -19,7 +19,7 @@ class Bitmap(Widget): self.image = Image.open(path) def draw(self, canvas, drawer): - if self.color = 0xFF: + if self.color == 0xFF: self.image = ImageOps.invert(self.image) canvas.paste(self.image, self.xy)