forked from M-Labs/artiq
1
0
Fork 0

runtime: add a missing overflow flag reset

This commit is contained in:
Sebastien Bourdeauducq 2018-03-04 01:05:18 +08:00
parent 87b51cbcc2
commit 7337842ff9
1 changed files with 1 additions and 0 deletions

View File

@ -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);