Merge pull request from JRWR/patch-2

Fixed Render crashing main thread
This commit is contained in:
evilsocket 2019-10-04 10:30:03 +02:00 committed by GitHub
commit 65c2a45665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions
scripts
sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ui

@ -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=<PATH_TO_SDCARD> bs=4M status=progress"
if [ "${OPT_SPARSE}" -eq 1 ];

@ -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)