Add error check to I2C transmit in RI2c.c
Add error check to I2C transmit in RI2c.c