si5324: improve lock messaging

This commit is contained in:
Sebastien Bourdeauducq 2018-06-19 14:29:43 +08:00
parent 6403a0d5d1
commit 476cfa0f53
1 changed files with 2 additions and 1 deletions

View File

@ -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(())
} }