mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
logic to not clear display every loop on waveshare27inchPartil
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user