Fix EDS DIG2 raw method

This commit is contained in:
James Bowman 2019-09-10 12:07:23 -07:00
parent df2a78cf2a
commit f00bee59c9
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class Dig2:
def raw(self, b0, b1):
""" Set all 8 segments from the bytes b0 and b1 """
self.i2.regwr(self.a, 0, b0, b1)
self.i2.regwr(self.a, 0, struct.pack("BB", b0, b1))
def hex(self, b):
""" Display a hex number 0-0xff """