Skip to content

Commit

Permalink
runtime: add a missing overflow flag reset
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourdeauducq committed Mar 3, 2018
1 parent 87b51cb commit 7337842
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions artiq/firmware/ksupport/rtio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ pub extern fn input_timestamp(timeout: i64, channel: i32) -> u64 {
}

if status & RTIO_I_STATUS_OVERFLOW != 0 {
csr::rtio::i_overflow_reset_write(1);
raise!("RTIOOverflow",
"RTIO input overflow on channel {0}",
channel as i64, 0, 0);
Expand Down

0 comments on commit 7337842

Please sign in to comment.