I think there is no problem with this segment of code.
void copydata(uint8_t *datato, uint8_t *datafrom, int size) { uint8_t *CurrentAddress = datafrom; u