DanNixon / NeoNextion

Arduino library for the Nextion displays
https://dannixon.github.io/NeoNextion
GNU General Public License v2.0
48 stars 34 forks source link

receiveNumber bug #50

Open VanMo opened 5 years ago

VanMo commented 5 years ago

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]);`

DanNixon commented 5 years ago

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.