Commit fe8997d5 authored by Dave Newbold's avatar Dave Newbold

Tidying code

parent 64a4ae52
......@@ -20,7 +20,7 @@ class si5344:
return self.i2c.read(self.slaveaddr, nwords)
def writeRegister(self, myaddr, data):
myaddr = myaddr & 0xFFFF
myaddr = int(myaddr) & 0xFFFF
currentPg = self.getPage()
requirePg = (myaddr & 0xFF00) >> 8
if currentPg[0] != requirePg:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment