forked from M-Labs/artiq
1
0
Fork 0

remove debug for converter

This commit is contained in:
occheung 2023-09-18 19:56:41 -07:00 committed by Sébastien Bourdeauducq
parent f2694f25eb
commit 477a7b693c
1 changed files with 1 additions and 2 deletions

View File

@ -9,8 +9,7 @@ from artiq.language.units import us
@portable @portable
def shuttler_volt_to_mu(volt): def shuttler_volt_to_mu(volt):
# TODO: Check arg, raise exception if exceeds shuttler limit return round((1 << 14) * (volt / 20.0)) & 0x3fff
return int(round((1 << 14) * (volt / 20.0))) & 0x3fff
class Config: class Config: