forked from M-Labs/artiq
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
|
return 0
|
||||||
}
|
}
|
||||||
count += 1;
|
count += 1;
|
||||||
|
if count > 200 {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
drtioaux::send_link(linkno, &drtioaux::Packet::EchoRequest).unwrap();
|
drtioaux::send_link(linkno, &drtioaux::Packet::EchoRequest).unwrap();
|
||||||
io.sleep(100).unwrap();
|
io.sleep(100).unwrap();
|
||||||
let pr = drtioaux::recv_link(linkno);
|
let pr = drtioaux::recv_link(linkno);
|
||||||
|
|
Loading…
Reference in New Issue