2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 12:48:26 +08:00

si5324: improve lock messaging

This commit is contained in:
Sebastien Bourdeauducq 2018-06-19 14:29:43 +08:00
parent 6403a0d5d1
commit 476cfa0f53

View File

@ -177,6 +177,7 @@ fn locked() -> Result<bool> {
}
fn monitor_lock() -> Result<()> {
info!("waiting for Si5324 lock...")
let t = clock::get_ms();
while !locked()? {
// Yes, lock can be really slow.
@ -184,7 +185,7 @@ fn monitor_lock() -> Result<()> {
return Err("Si5324 lock timeout");
}
}
info!("Si5324 is locked");
info!(" ...locked");
Ok(())
}