Hello,
Is there a simple and effective way to convert a uint16 value to a int16 value ?
Turrently I use this :
readInt send an uint16_t value, so if the real value is -10, I get 65531.Code:tMot.mini = EEPROM.readInt(25); if (tMot.mini > 65000) tMot.mini = tMot.mini - 65536;
I tried :
But it don't work.Code:tMot.mini = (int)EEPROM.readInt(25);
Thank you,
Manu