From 4b71fea4048220aa1087643d10551f107c0cba56 Mon Sep 17 00:00:00 2001 From: ACO Date: Fri, 13 Dec 2019 23:49:58 +0100 Subject: [PATCH] Set correct position for memtemp plugin so that it does not overlap with regular messages for waveshare27inch. Signed-off-by: ArnCo --- pwnagotchi/plugins/default/memtemp.py | 3 +++ pwnagotchi/ui/hw/waveshare27inch.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pwnagotchi/plugins/default/memtemp.py b/pwnagotchi/plugins/default/memtemp.py index 4d5dd640..b3becdd8 100644 --- a/pwnagotchi/plugins/default/memtemp.py +++ b/pwnagotchi/plugins/default/memtemp.py @@ -53,6 +53,9 @@ class MemTemp(plugins.Plugin): elif ui.is_inky(): h_pos = (140, 68) v_pos = (165, 54) + elif ui.is_waveshare27inch(): + h_pos = (192, 138) + v_pos = (216, 122) else: h_pos = (155, 76) v_pos = (180, 61) diff --git a/pwnagotchi/ui/hw/waveshare27inch.py b/pwnagotchi/ui/hw/waveshare27inch.py index c554744b..0cbc168e 100644 --- a/pwnagotchi/ui/hw/waveshare27inch.py +++ b/pwnagotchi/ui/hw/waveshare27inch.py @@ -6,7 +6,7 @@ from pwnagotchi.ui.hw.base import DisplayImpl class Waveshare27inch(DisplayImpl): def __init__(self, config): - super(Waveshare27inch, self).__init__(config, 'waveshare_2_7inch') + super(Waveshare27inch, self).__init__(config, 'waveshare27inch') self._display = None def layout(self):