Set correct position for memtemp plugin so that it does not overlap with regular messages for waveshare27inch.

Signed-off-by: ArnCo <arnaud@cordier.work>
This commit is contained in:
ACO 2019-12-13 23:49:58 +01:00 committed by ArnCo
parent e0a66f5c99
commit 4b71fea404
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -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):