forked from M-Labs/artiq
1
0
Fork 0

runtime/ttl: simplify ttl_get() a bit

This commit is contained in:
Robert Jördens 2016-02-29 17:58:54 +01:00
parent e11366869d
commit d3c94827eb
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ long long int ttl_get(int channel, long long int time_limit)
rtio_chan_sel_write(channel); rtio_chan_sel_write(channel);
while((status = rtio_i_status_read())) { 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); rtio_i_overflow_reset_write(1);
artiq_raise_from_c("RTIOOverflow", artiq_raise_from_c("RTIOOverflow",
"RTIO overflow at channel {0}", "RTIO overflow at channel {0}",