From 2616e1928d9f9629010dd36db8a6e0accc28bab9 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 13 Feb 2022 12:47:53 +0800 Subject: [PATCH] ttl: fix type error --- artiq/coredevice/ttl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/coredevice/ttl.py b/artiq/coredevice/ttl.py index 9143dc7c9..b7cf4fe99 100644 --- a/artiq/coredevice/ttl.py +++ b/artiq/coredevice/ttl.py @@ -447,7 +447,7 @@ class TTLInOut: rtio_output(self.target_sens, 0) success = True try: - while rtio_input_timestamp(now_mu() + int64(self.gate_latency_mu), self.channel) != -1: + while rtio_input_timestamp(now_mu() + int64(self.gate_latency_mu), self.channel) != int64(-1): success = False except RTIOOverflow: success = False