missing zero

This commit is contained in:
M.H.Kabir 2015-01-04 17:38:19 +05:30
parent b6f6a99799
commit 3616c83f88
1 changed files with 1 additions and 1 deletions

View File

@ -983,7 +983,7 @@ MavlinkReceiver::handle_message_timesync(mavlink_message_t *msg)
int64_t offset_ns = (9*_time_offset + (tsync.ts1 + now_ns - tsync.tc1*2)/2 )/10; // average offset
int64_t dt = _time_offset - offset_ns;
if (dt > 10000000 || dt < -1000000) { // 10 millisecond skew
if (dt > 10000000 || dt < -10000000) { // 10 millisecond skew
_time_offset = (tsync.ts1 + now_ns - tsync.tc1*2)/2;
warnx("[timesync] Resetting.");