Hello,
I have a simple code that reads some data from UART and converts it to float, and I've encountered a problem:
uint32_t temp1; float vel; vel = (float) temp1; // ERROR: the hexadecimal data in temp1 and vel is not the same !! memcpy((void*)&vel, (void*)&temp1, 2); // OK!
How come casting to float is not working as expected?