From d3c94827eb239e589393f974f107978d39ad6ccf Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Mon, 29 Feb 2016 17:58:54 +0100 Subject: [PATCH] runtime/ttl: simplify ttl_get() a bit --- artiq/runtime/ttl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/runtime/ttl.c b/artiq/runtime/ttl.c index 577ab1eeb..db75207d4 100644 --- a/artiq/runtime/ttl.c +++ b/artiq/runtime/ttl.c @@ -38,7 +38,7 @@ long long int ttl_get(int channel, long long int time_limit) rtio_chan_sel_write(channel); while((status = rtio_i_status_read())) { - if(rtio_i_status_read() & RTIO_I_STATUS_OVERFLOW) { + if(status & RTIO_I_STATUS_OVERFLOW) { rtio_i_overflow_reset_write(1); artiq_raise_from_c("RTIOOverflow", "RTIO overflow at channel {0}",