jesd204sync: print more information on test_slip_ddmtd error

This commit is contained in:
Sebastien Bourdeauducq 2019-01-29 16:47:29 +08:00
parent 2e8decbce3
commit ed6aa29897
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ fn test_slip_ddmtd() -> Result<(), &'static str> {
let phase = measure_ddmdt_phase(); let phase = measure_ddmdt_phase();
let step = (DDMTD_N + old_phase - phase) % DDMTD_N; let step = (DDMTD_N + old_phase - phase) % DDMTD_N;
if (step - expected_step).abs() > tolerance { if (step - expected_step).abs() > tolerance {
error!(" ...got unexpected step: {}", step); error!(" ...got unexpected step: {} ({} -> {})", step, old_phase, phase);
return Err("HMC7043 SYSREF slip produced unexpected DDMTD step"); return Err("HMC7043 SYSREF slip produced unexpected DDMTD step");
} }
old_phase = phase; old_phase = phase;