perhaps since i2c_read() returns an 8-bit int, the code was originally written with datah and datal being 8-bit integers. Then they were changed to unsigned longs and the casting was no longer needed, but never removed.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum