forked from M-Labs/artiq
Update driver.py
This commit is contained in:
parent
c971a6f1c6
commit
ff37cdc26c
|
@ -159,4 +159,4 @@ class Lda:
|
||||||
:type attenuation: int, float or Fraction
|
: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))]))
|
||||||
|
|
Loading…
Reference in New Issue