Fix bug in i2cReadFromRegister