ISystemClock::adjustUtc() accepts only relative offset now

This commit is contained in:
Pavel Kirienko
2014-03-20 23:27:09 +04:00
parent 9c02ce2e05
commit 6eb660f11a
2 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -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;
};
}
+2 -2
View File
@@ -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);
}