Various fixes to the i2c communication management.