Fixed Linux driver: SocketCan driver adds time offset from the provided clock instance, which fixes time synchronization in PerDriverPrivate clock adjustment mode

This commit is contained in:
Pavel Kirienko
2014-04-17 16:14:39 +04:00
parent bd27ab02ac
commit c17a2bbd5b
3 changed files with 42 additions and 18 deletions
@@ -31,12 +31,12 @@ class DefaultLogSink : public uavcan::ILogSink
*/
struct DriverPack
{
SocketCanDriver can;
SystemClock clock;
SocketCanDriver can;
DriverPack(ClockAdjustmentMode clock_adjustment_mode)
: can()
, clock(clock_adjustment_mode)
: clock(clock_adjustment_mode)
, can(clock)
{ }
};