NeoNextion icon indicating copy to clipboard operation
NeoNextion copied to clipboard

receiveNumber bug

Open VanMo opened this issue 5 years ago • 1 comments

Hello. I faced a problem trying to read big value with method bool receiveNumber(uint32_t *number). The method can't construct 32-bit value, because it shifting too small registers here: *number = (temp[4] << 24) | (temp[3] << 16) | (temp[2] << 8) | (temp[1]); it works better if doing this: *number = ((uint32_t)temp[4] << 24) | ((uint32_t)temp[3] << 16) | ((uint32_t)temp[2] << 8) | (temp[1]);

VanMo avatar Mar 20 '19 13:03 VanMo

Glad you find a solution, unfortunately as the readme states I no longer use (or have access to) these displays so do not support this library anymore.

If you have working modifications to the library I'd happily accept a PR through.

DanNixon avatar Mar 29 '19 12:03 DanNixon