From 8bea821f9346d5d66a090ce7e30b76e152750d58 Mon Sep 17 00:00:00 2001 From: SingularitySurfer Date: Tue, 21 Jun 2022 08:43:55 +0000 Subject: [PATCH] just &1 to stay in field --- artiq/coredevice/phaser.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/artiq/coredevice/phaser.py b/artiq/coredevice/phaser.py index 417bcf32f..9d1d2a63c 100644 --- a/artiq/coredevice/phaser.py +++ b/artiq/coredevice/phaser.py @@ -1071,12 +1071,7 @@ class PhaserChannel: if (profile < 0) or (profile > 3): raise ValueError("invalid profile index") addr = PHASER_ADDR_SERVO_CFG0 + self.index - data = 0 - if bypass == 0: - data = 1 - if hold == 1: - data = data | (1 << 1) - data = data | (profile << 2) + data = (profile << 2) | ((hold & 1) << 1) | (~bypass & 1) self.phaser.write8(addr, data) @kernel