From 397fe5b7a73b6a6e1d2488c8629fdab4a26bfb4d Mon Sep 17 00:00:00 2001 From: Sniffleupagus Date: Mon, 3 Jul 2023 13:23:01 -0700 Subject: [PATCH] logic to not clear display every loop on waveshare27inchPartil --- pwnagotchi/ui/display.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pwnagotchi/ui/display.py b/pwnagotchi/ui/display.py index ab0f3a15..f77e002b 100644 --- a/pwnagotchi/ui/display.py +++ b/pwnagotchi/ui/display.py @@ -43,6 +43,9 @@ class Display(View): def is_waveshare27inch(self): return self._implementation.name == 'waveshare27inch' + def is_waveshare27inchPartial(self): + return self._implementation.name == 'waveshare27inchPartial' + def is_waveshare29inch(self): return self._implementation.name == 'waveshare29inch' @@ -101,7 +104,8 @@ class Display(View): while True: self._canvas_next_event.wait() - self._canvas_next_event.clear() + if self._implementation.name != 'waveshare27inchPartial': + self._canvas_next_event.clear() self._implementation.render(self._canvas_next) def _on_view_rendered(self, img):