Merge pull request #126 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
2 changed files with 5 additions and 2 deletions

View File

@ -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 ];

View File

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