Skip to content

Commit

Permalink
Add missing PrintClear
Browse files Browse the repository at this point in the history
  • Loading branch information
MultiMote committed Dec 4, 2024
1 parent 3dc12c9 commit 3690fdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/print_tasks/B21V1PrintTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export class B21V1PrintTask extends AbstractPrintTask {

for (let i = 0; i < (quantity ?? 1); i++) {
await this.abstraction.sendAll([
PacketGenerator.printClear(),
PacketGenerator.pageStart(),
PacketGenerator.setPageSizeV2(image.rows, image.cols),
...PacketGenerator.writeImageData(image, this.printheadPixels()),
Expand Down
1 change: 1 addition & 0 deletions src/print_tasks/D110PrintTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export class D110PrintTask extends AbstractPrintTask {
this.checkAddPage(quantity ?? 1);

return this.abstraction.sendAll([
PacketGenerator.printClear(),
PacketGenerator.pageStart(),
PacketGenerator.setPageSizeV2(image.rows, image.cols),
PacketGenerator.setPrintQuantity(quantity ?? 1),
Expand Down

0 comments on commit 3690fdc

Please sign in to comment.