Open vdneut opened 3 years ago
Status: not solved
And did some digging and found that LOCK_VERSION could be set to 10 and create smaller arrays (it might be a memory problem?). But no effect.
Has anyone tested this with type 10 or higher?
To be complete, I include the arrays for type 10:
`#elif LOCK_VERSION == 10
static const int16_t NUM_ERROR_CORRECTION_CODEWORDS[4] = { 130, 72, 224, 192 };
static const int8_t NUM_ERROR_CORRECTION_BLOCKS[4] = { 5, 4, 8, 8 };
static const uint16_t NUM_RAW_DATA_MODULES = 2768; `
Status: Solved
Within function getModeBits() in qrcode.c
Change
unsigned int modeInfo = 0x7bbb80a;
Into
unsigned long modeInfo = 0x7bbb80a;
To avoid truncation of 0x7bbb80a.
To reproduce: use the int and compile with warning level high or 'all'.
@ricmoo or @per1234 could you please solve this bug in the library?
Regards
The qr codes generated and displayed on a 320x480 TFT / Arduino MEGA can be scanned using an average qr-code scanner app, up to type 9. Using type 10 or higher, the app does not scan the code.
qrcode_initText retruns 0 (zero). Seems to be ok.
See code below, including the output: type 9 is working and type 10 is not working
Not sure if it is something I did wrong, or any other reason. Help is greatly appreciated!
Kind regards
Type 9 is working
Type 10 is not working