From aeada2ee6e446f398d78b84290b9980492e437ed Mon Sep 17 00:00:00 2001 From: jayofelony Date: Tue, 5 Mar 2024 21:48:16 +0100 Subject: [PATCH] Fix waveshare2in7_V2.py Signed-off-by: jayofelony --- pwnagotchi/ui/hw/waveshare2in7_V2.py | 2 +- pwnagotchi/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/ui/hw/waveshare2in7_V2.py b/pwnagotchi/ui/hw/waveshare2in7_V2.py index e8d4cfcd..60679835 100644 --- a/pwnagotchi/ui/hw/waveshare2in7_V2.py +++ b/pwnagotchi/ui/hw/waveshare2in7_V2.py @@ -39,7 +39,7 @@ class Waveshare27inchV2(DisplayImpl): def render(self, canvas): buf = self._display.getbuffer(canvas) - self._display.display_Fast(buf) + self._display.display_Partial(buf, 0, 0, 176, 264) def clear(self): # This line also removes the 0xFF diff --git a/pwnagotchi/utils.py b/pwnagotchi/utils.py index 1a09d6fe..a123b7d0 100644 --- a/pwnagotchi/utils.py +++ b/pwnagotchi/utils.py @@ -431,7 +431,7 @@ def load_config(args): config['ui']['display']['type'] = 'waveshare13in3k' # WeAct e-ink - elif config['ui']['display']['type'] in ('weact2in9', 'weact29in', 'weact2in9'): + elif config['ui']['display']['type'] in ('weact2in9', 'weact29in'): config['ui']['display']['type'] = 'weact2in9' else: