2
0
mirror of https://github.com/m-labs/artiq.git synced 2025-01-02 23:23:35 +08:00

Update driver.py

This commit is contained in:
dhslichter 2015-01-05 17:40:37 -07:00
parent c971a6f1c6
commit ff37cdc26c

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))]))