mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Remove need to evaluate epd fuse file
This commit is contained in:
@ -3,6 +3,7 @@ from threading import Lock
|
|||||||
|
|
||||||
import io
|
import io
|
||||||
import core
|
import core
|
||||||
|
import os
|
||||||
import pwnagotchi
|
import pwnagotchi
|
||||||
|
|
||||||
from pwnagotchi.ui.view import WHITE, View
|
from pwnagotchi.ui.view import WHITE, View
|
||||||
@ -118,7 +119,7 @@ class Display(View):
|
|||||||
self._render_cb = self._inky_render
|
self._render_cb = self._inky_render
|
||||||
elif self._is_papirus():
|
elif self._is_papirus():
|
||||||
from papirus import Papirus
|
from papirus import Papirus
|
||||||
exec(open('/etc/default/epd-fuse').read())
|
os.environ['EPD_SIZE'] = '2.0'
|
||||||
self._display = Papirus()
|
self._display = Papirus()
|
||||||
self._display.clear()
|
self._display.clear()
|
||||||
self._render_cb = self._papirus_render
|
self._render_cb = self._papirus_render
|
||||||
|
Reference in New Issue
Block a user