fix: increase feed to 4 lines in escpos_generator to clear cutter blade on integrated printers

This commit is contained in:
Suherdy Yacob 2026-06-01 09:37:34 +07:00
parent fe1b692f4f
commit e71f979e3b

View File

@ -337,8 +337,8 @@ export class EscPosGenerator {
} }
} }
// Feed and cut (reduced feed to 1 line to prevent footer white spaces on integrated Android/iMin printers) // Feed and cut (set feed to 4 lines to ensure the footer clears the cutter blade before cutting)
cmds.push(...this.feedAndCut(1)); cmds.push(...this.feedAndCut(4));
return new Uint8Array(cmds); return new Uint8Array(cmds);
} }