2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

Update artiq/coredevice/phaser.py

Co-authored-by: Robert Jördens <rj@quartiq.de>
This commit is contained in:
Norman Krackow 2022-06-17 14:39:37 +02:00 committed by GitHub
parent ae3f1c1c71
commit 2044dc3ae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1067,7 +1067,7 @@ class PhaserChannel:
"""
if (profile < 0) | (profile > 3):
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:
data = 1
if hold == 1: