Update driver.py

This commit is contained in:
dhslichter 2015-01-05 17:40:37 -07:00
parent c971a6f1c6
commit ff37cdc26c
1 changed files with 1 additions and 1 deletions

View File

@ -159,4 +159,4 @@ class Lda:
:type attenuation: int, float or Fraction
"""
self.set(0x8d, bytes(chr(int(round(attenuation*4))), "latin_1"))
self.set(0x8d, bytes([int(round(attenuation*4))]))