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

128 bar code should end at 2331112 #1

Closed
wsrtd opened this issue Apr 19, 2019 · 1 comment
Closed

128 bar code should end at 2331112 #1

wsrtd opened this issue Apr 19, 2019 · 1 comment

Comments

@wsrtd
Copy link

wsrtd commented Apr 19, 2019

This library is very good. But I can't scan it with my mobile phone using the barcode generated by it. So I looked up a lot of information and found that the end of the bar code was one less.

     // Input -> 11648
    // Output -> "211412123221123221223112221231311222132212233111"

output should be "2114121232211232212231122212313112221322122331112"。

String bars = barcode.make(text);

The bars array should end up with a "2".

@victorheid
Copy link
Owner

I've fixed the ending sequence to use a different sequence pattern - You can check it on Barcode.cpp:166

I'm not sure if that is result of some different implementation used by the scanners, as the generated patter was read by my phone.

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

2 participants