From 7b6ad4e99a8a9b93bfbaf263016218e49c30a68f Mon Sep 17 00:00:00 2001 From: jayofelony Date: Sat, 15 Jun 2024 20:03:36 +0200 Subject: [PATCH] More pythonic Signed-off-by: jayofelony --- pwnagotchi/ui/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/ui/view.py b/pwnagotchi/ui/view.py index 8d31ffeb..d2a39fb4 100644 --- a/pwnagotchi/ui/view.py +++ b/pwnagotchi/ui/view.py @@ -28,7 +28,7 @@ class View(object): self.invert = 0 self._black = 0xFF self._white = 0x00 - if 'invert' in config['ui'] and config['ui']['invert'] == True: + if 'invert' in config['ui'] and config['ui']['invert']: logging.debug("INVERT BLACK/WHITES:" + str(config['ui']['invert'])) self.invert = 1 BLACK = 0x00