mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-28 20:53:35 +08:00
drtio: add ping timeout during link init
This commit is contained in:
parent
446f791180
commit
83de8b2ba2
@ -101,6 +101,9 @@ pub mod drtio {
|
||||
return 0
|
||||
}
|
||||
count += 1;
|
||||
if count > 200 {
|
||||
return 0;
|
||||
}
|
||||
drtioaux::send_link(linkno, &drtioaux::Packet::EchoRequest).unwrap();
|
||||
io.sleep(100).unwrap();
|
||||
let pr = drtioaux::recv_link(linkno);
|
||||
|
Loading…
Reference in New Issue
Block a user