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:
parent
6403a0d5d1
commit
476cfa0f53
@ -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(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user