ricmoo / QRCode

QR code generation library in C, optimized for low-power devices, such as Arduino.
Other
638 stars 202 forks source link

Order of entries NUM_ERROR_CORRECTION_BLOCKS #23

Open jepaan opened 3 years ago

jepaan commented 3 years ago

Hi

Is the order of the elements in NUM_ERROR_CORRECTION_BLOCKS correct? Currently it is written in the comment that it is Medium, Low, High, Quartile.

However they are accessed using the ecc value as index. In the header, the ECC values are defined as

define ECC_LOW 0

define ECC_MEDIUM 1

define ECC_QUARTILE 2

define ECC_HIGH 3

The same seem to be the case for NUM_ERROR_CORRECTION_CODEWORDS?