mirror of https://github.com/m-labs/artiq.git
Update artiq/coredevice/phaser.py
Co-authored-by: Robert Jördens <rj@quartiq.de>
This commit is contained in:
parent
ae3f1c1c71
commit
2044dc3ae5
|
@ -1067,7 +1067,7 @@ class PhaserChannel:
|
||||||
"""
|
"""
|
||||||
if (profile < 0) | (profile > 3):
|
if (profile < 0) | (profile > 3):
|
||||||
raise ValueError("invalid profile index")
|
raise ValueError("invalid profile index")
|
||||||
addr = PHASER_ADDR_SERVO_CFG1 if self.index == 1 else PHASER_ADDR_SERVO_CFG0
|
addr = PHASER_ADDR_SERVO_CFG0 + self.index
|
||||||
if bypass == 0:
|
if bypass == 0:
|
||||||
data = 1
|
data = 1
|
||||||
if hold == 1:
|
if hold == 1:
|
||||||
|
|
Loading…
Reference in New Issue