0
I am receiving data and in my project storing in an array of uint8_t and then processing in variable int, it’s okay that I could leave everything int but this does not apply to the project.
int main()
{
uint8_t data=0x13;
int range=(int) data;
printf("8 bits: %x\n", data); // Mostra 13
printf("16 bits: %d\n", range); // Mostra 19
return 0;
}
How can I assign 13 (uint8_t) to an int variable without it doing the conversion?