I'm getting data and in my project saving in an array of uint8_t and then processing in int variable, okay 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?