Lepotato i2c not compatible with rpi 3B?

I have a lepotato and an rpi 3B. I’m using some C code to read/write an i2c device and everything works on the rpi but not on the potato. The C code uses i2c_smbus_read_word_data and i2c_smbus_write_word_data. Should these be expected to work on the potato?

On the potato i2cdetect shows the device is present and at the expected address. The C reads are always returning the same incorrect value. The i2c does work using SMBus from a python test script.

Ideas?

I’ve tried :
i2cget -y 1 0x48 0 w

Which is very like what I’m doing in my C code and works. So I’ll have to do a bit more digging.

It’s always a typo in the code :frowning: Works now.