Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite Loop of Printing when there is a printImageBase64 #118

Open
miles003 opened this issue May 28, 2024 · 0 comments
Open

Infinite Loop of Printing when there is a printImageBase64 #118

miles003 opened this issue May 28, 2024 · 0 comments

Comments

@miles003
Copy link

miles003 commented May 28, 2024

Anyone encountered the same issue? here's the scenario
after the first try of printing with printImageBase64 everything works fine
but when print for the second time it prints without stopping.
here's my snippet

      const printer = await BLEPrinter.connectPrinter(module.exports.globalState.state.printers.inner_mac_address);
      BLEPrinter.printImageBase64(logo, {
        imageWidth: 150,
        imageHeight: 150,
      });
      BLEPrinter.printText("<C>Sample</C>")
      BLEPrinter.closeConn()

But if i remove the print with printImageBase64 everything works fine no matter how many i print
seems like there is a problem when printing printImageBase64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant