diff --git a/src/ptouch-print.c b/src/ptouch-print.c index 600261a..6c382af 100644 --- a/src/ptouch-print.c +++ b/src/ptouch-print.c @@ -648,7 +648,7 @@ int main(int argc, char *argv[]) if (im != NULL) { gdImageDestroy(im); } - if (forced_tape_width > 0) { + if (!forced_tape_width) { ptouch_close(ptdev); } libusb_exit(NULL);