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:
parent
e0a66f5c99
commit
4b71fea404
@ -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)
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user