From a486f1bc75c8cd414f93d48ddaef6918373016e4 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Fri, 5 Jan 2024 15:56:38 +0100 Subject: [PATCH] Update view.py --- pwnagotchi/ui/view.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/ui/view.py b/pwnagotchi/ui/view.py index e9424f8e..725f8f6c 100644 --- a/pwnagotchi/ui/view.py +++ b/pwnagotchi/ui/view.py @@ -24,6 +24,8 @@ ROOT = None class View(object): def __init__(self, config, impl, state=None): global ROOT + global WHITE + global BLACK # setup faces from the configuration in case the user customized them faces.load_from_config(config['ui']['faces']) @@ -31,8 +33,6 @@ class View(object): self._invert = config['ui']['invert'] if self._invert: - global WHITE - global BLACK WHITE = 0x00 BLACK = 0xFF