From 31db4d062cb8a52300c084094b30337b296556c3 Mon Sep 17 00:00:00 2001 From: Forrest Fuqua Date: Thu, 3 Oct 2019 19:48:44 -0400 Subject: [PATCH 1/2] Update Inky Render to not crash the script Updated Inky so in case the render cannot display anything to the hardware everything else works (like the webbrowser) Other renders should do the same --- .../rootfs/root/pwnagotchi/scripts/pwnagotchi/ui/display.py | 5 ++++- 1 file changed, 4 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 ed6b188f..76e9a24d 100644 --- a/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ui/display.py +++ b/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ui/display.py @@ -190,7 +190,10 @@ class Display(View): ]) self._display.set_image(img_buffer) - self._display.show() + try: + self._display.show() + except: + print("") def _papirus_render(self): self._display.display(self._canvas) From 01535176ed10695bc68d886ad21f6d7f8f1f4757 Mon Sep 17 00:00:00 2001 From: Forrest Fuqua Date: Thu, 3 Oct 2019 19:49:38 -0400 Subject: [PATCH 2/2] Update create_sibling.sh Fixed Array Call for the gender --- scripts/create_sibling.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create_sibling.sh b/scripts/create_sibling.sh index f2f5c5fd..b7cbbeb0 100755 --- a/scripts/create_sibling.sh +++ b/scripts/create_sibling.sh @@ -341,7 +341,7 @@ gender[1]="girl" rand=$[ $RANDOM % 2 ] -echo -e "[+] Congratz, it's a ${arr[$rand]} (⌐■_■)!" +echo -e "[+] Congratz, it's a ${gender[$rand]} (⌐■_■)!" echo -e "[+] One more step: dd if=../${PWNI_OUTPUT} of= bs=4M status=progress" if [ "${OPT_SPARSE}" -eq 1 ];