1
0
mirror of https://git.familie-radermacher.ch/linux/ptouch-print.git synced 2026-03-07 06:34:18 +00:00

add (untested) support for PT-D460BT thanks to ccfreak2k

This commit is contained in:
Dominic Radermacher
2023-10-13 12:30:33 +02:00
parent 8b631a7996
commit f22e844eed
3 changed files with 50 additions and 1 deletions

View File

@@ -109,6 +109,18 @@ int print_img(ptouch_dev ptdev, gdImage *im)
printf(_("send print information command\n"));
}
}
if ((ptdev->devinfo->flags & FLAG_D460BT_MAGIC) == FLAG_D460BT_MAGIC) {
ptouch_send_d460bt_magic(ptdev);
if (debug) {
printf(_("send PT-D460BT magic commands\n"));
}
}
if ((ptdev->devinfo->flags & FLAG_HAS_PRECUT) == FLAG_HAS_PRECUT) {
ptouch_send_precut_cmd(ptdev, 1);
if (debug) {
printf(_("send precut command\n"));
}
}
for (k=0; k<gdImageSX(im); k+=1) {
memset(rasterline, 0, sizeof(rasterline));
for (i=0; i<gdImageSY(im); i+=1) {