From 29a1db106ae13ec0f8b55ed94aa25e0028dc3a11 Mon Sep 17 00:00:00 2001 From: James Hooker <g0blin@hackthebox.eu> Date: Sun, 29 Sep 2019 06:32:16 +0100 Subject: [PATCH] Remove need to evaluate epd fuse file --- sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ui/display.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ui/display.py b/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ui/display.py index 5562141..c1d71e7 100644 --- a/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ui/display.py +++ b/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ui/display.py @@ -3,6 +3,7 @@ from threading import Lock import io import core +import os import pwnagotchi from pwnagotchi.ui.view import WHITE, View @@ -118,7 +119,7 @@ class Display(View): self._render_cb = self._inky_render elif self._is_papirus(): from papirus import Papirus - exec(open('/etc/default/epd-fuse').read()) + os.environ['EPD_SIZE'] = '2.0' self._display = Papirus() self._display.clear() self._render_cb = self._papirus_render