forked from M-Labs/artiq
1
0
Fork 0

lda: remove excessive verbosity

This commit is contained in:
Sebastien Bourdeauducq 2014-11-25 19:59:53 +08:00
parent 57e25c7af1
commit dc27c2e3ad
1 changed files with 0 additions and 2 deletions

View File

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