diff --git a/libuavcan_drivers/lpc11c24/driver/src/clock.cpp b/libuavcan_drivers/lpc11c24/driver/src/clock.cpp index 164e2608ab..f32215ba4b 100644 --- a/libuavcan_drivers/lpc11c24/driver/src/clock.cpp +++ b/libuavcan_drivers/lpc11c24/driver/src/clock.cpp @@ -116,7 +116,7 @@ void adjustUtc(uavcan::UtcDuration adjustment) utc_correction_usec_per_overflow_x16 = std::max(utc_correction_usec_per_overflow_x16, -MaxUtcSpeedCorrectionX16); utc_correction_usec_per_overflow_x16 = std::min(utc_correction_usec_per_overflow_x16, MaxUtcSpeedCorrectionX16); - if (adjustment.getAbs().toMSec() > 2 || !utc_set) + if (adjustment.getAbs().toMSec() > 9 || !utc_set) { const int64_t adj_usec = adjustment.toUSec(); { diff --git a/libuavcan_drivers/stm32/driver/src/uc_stm32_clock.cpp b/libuavcan_drivers/stm32/driver/src/uc_stm32_clock.cpp index 5a8d0b8685..509a51a000 100644 --- a/libuavcan_drivers/stm32/driver/src/uc_stm32_clock.cpp +++ b/libuavcan_drivers/stm32/driver/src/uc_stm32_clock.cpp @@ -41,7 +41,7 @@ uavcan::uint32_t utc_jump_cnt = 0; uavcan::int32_t utc_correction_usec_per_overflow_x16 = 0; uavcan::int64_t prev_adjustment = 0; -uavcan::UtcDuration min_jump = uavcan::UtcDuration::fromMSec(3); +uavcan::UtcDuration min_jump = uavcan::UtcDuration::fromMSec(10); uavcan::uint64_t time_mono = 0; uavcan::uint64_t time_utc = 0;