Do not eject if writing to png

This commit is contained in:
Christer Palm 2017-09-24 01:27:09 +02:00
parent 51168d3b98
commit e00645e6c7
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ int main(int argc, char *argv[])
usage(argv[0]);
}
}
if (ptouch_eject(ptdev) != 0) {
if (!save_png && ptouch_eject(ptdev) != 0) {
printf(_("ptouch_eject() failed\n"));
return -1;
}