Fixed ReadReg8 to call correct underlying method

This commit is contained in:
Philip Howard
2013-12-11 14:36:44 +00:00
parent e1a81e18a4
commit 4e1f4b7f33

View File

@@ -554,7 +554,7 @@ class I2C(object):
def read(self,*args): def read(self,*args):
return wiringPiI2CRead(*args) return wiringPiI2CRead(*args)
def readReg8(self,*args): def readReg8(self,*args):
return wiringPiI2CRead(*args) return wiringPiI2CReadReg8(*args)
def readReg16(self,*args): def readReg16(self,*args):
return wiringPiI2CReadReg16(*args) return wiringPiI2CReadReg16(*args)
def write(self,*args): def write(self,*args):