Update offset correction errors only when needed

This commit is contained in:
Miroslav Lichvar
2010-08-11 17:16:16 +02:00
parent fa84496423
commit 1faeb45063
5 changed files with 13 additions and 12 deletions

View File

@@ -271,7 +271,8 @@ get_offset_correction(struct timeval *raw,
stop_adjust();
*corr = -offset_register;
start_adjust();
*err = 0.0;
if (err)
*err = 0.0;
}
/* ================================================== */