From 6eb660f11a106b3f01be26cf3d24bac1357ad004 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Thu, 20 Mar 2014 23:27:02 +0400 Subject: [PATCH] ISystemClock::adjustUtc() accepts only relative offset now --- libuavcan/include/uavcan/system_clock.hpp | 5 ++--- libuavcan/test/clock.hpp | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/libuavcan/include/uavcan/system_clock.hpp b/libuavcan/include/uavcan/system_clock.hpp index 209f0bc8c5..e442159142 100644 --- a/libuavcan/include/uavcan/system_clock.hpp +++ b/libuavcan/include/uavcan/system_clock.hpp @@ -37,11 +37,10 @@ public: /** * Set the UTC system clock. - * @param [in] timestamp New UTC timestamp. Avoid when possible. - * @param [in] offset Current UTC time error. More precise than just timestamp, use it if possible. + * @param [in] adjustment Amount of time to add to the clock value. * For POSIX refer to adjtime(), settimeofday(). */ - virtual void adjustUtc(UtcTime new_time, UtcDuration offset) = 0; + virtual void adjustUtc(UtcDuration adjustment) = 0; }; } diff --git a/libuavcan/test/clock.hpp b/libuavcan/test/clock.hpp index 8cafe9545e..f399ece319 100644 --- a/libuavcan/test/clock.hpp +++ b/libuavcan/test/clock.hpp @@ -42,7 +42,7 @@ public: return uavcan::UtcTime::fromUSec(utc); } - void adjustUtc(uavcan::UtcTime, uavcan::UtcDuration) + void adjustUtc(uavcan::UtcDuration) { assert(0); } @@ -76,7 +76,7 @@ public: return uavcan::UtcTime::fromUSec(uint64_t(tv.tv_sec) * 1000000UL + tv.tv_usec); } - void adjustUtc(uavcan::UtcTime, uavcan::UtcDuration) + void adjustUtc(uavcan::UtcDuration) { assert(0); }