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

Transactional printing doesn't return out-of-paper result on Sunmi P1 #73

Open
gmk57 opened this issue Sep 6, 2022 · 0 comments
Open

Comments

@gmk57
Copy link

gmk57 commented Sep 6, 2022

"Notes on transaction printing" in the docs state that "all print jobs submitted this time will loss if errors including out of paper, overheated occured, and an error feedback will be provided".

We use this to print bank receipts and get the result: proceed to next step after success or notify user in case of error. Basically, we submit the transaction and then wait for onPrintResult to be called.

This works well on Sunmi P2 Pro, but on Sunmi P1 4G this only handles errors happening during the printing. If there was already no paper when printing is started, onPrintResult is not called with an error code, and printer waits infinitely for paper to be inserted. And we don't see in the docs any methods to break this waiting manually (we tried calling enterPrinterBuffer(true) again, it didn't help).

We've tried versions 1.0.13 & 1.0.19, with the same result.

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