From: Christer Palm Date: Sat, 23 Sep 2017 23:27:09 +0000 (+0200) Subject: Do not eject if writing to png X-Git-Url: https://git.sur5r.net/?p=ptouch-print;a=commitdiff_plain;h=e00645e6c75ac8447c584644bdadc453e649e9c4 Do not eject if writing to png --- diff --git a/src/ptouch-print.c b/src/ptouch-print.c index e99e6ae..0845b89 100644 --- a/src/ptouch-print.c +++ b/src/ptouch-print.c @@ -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; }