mirror of https://github.com/m-labs/artiq.git
si5324: improve lock messaging
This commit is contained in:
parent
6403a0d5d1
commit
476cfa0f53
|
@ -177,6 +177,7 @@ fn locked() -> Result<bool> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn monitor_lock() -> Result<()> {
|
fn monitor_lock() -> Result<()> {
|
||||||
|
info!("waiting for Si5324 lock...")
|
||||||
let t = clock::get_ms();
|
let t = clock::get_ms();
|
||||||
while !locked()? {
|
while !locked()? {
|
||||||
// Yes, lock can be really slow.
|
// Yes, lock can be really slow.
|
||||||
|
@ -184,7 +185,7 @@ fn monitor_lock() -> Result<()> {
|
||||||
return Err("Si5324 lock timeout");
|
return Err("Si5324 lock timeout");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
info!("Si5324 is locked");
|
info!(" ...locked");
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue