i2c code tweak