2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

lda: remove excessive verbosity

This commit is contained in:
Sebastien Bourdeauducq 2014-11-25 19:59:53 +08:00
parent 57e25c7af1
commit dc27c2e3ad

View File

@ -137,8 +137,6 @@ class Lda:
def set_attenuation(self, attenuation):
if self.product != "sim":
print("[{}] setting attenuation to {}".format(self.product,
attenuation))
self.set(0x8d, bytes(chr(int(round(attenuation*4))), 'ascii'))
else:
attenuation = round(attenuation*4)/4.