Update i2c.c

Flag error correction