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:
parent
c971a6f1c6
commit
ff37cdc26c
@ -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))]))
|
||||
|
Loading…
Reference in New Issue
Block a user