another fix

This commit is contained in:
Tomasz Dobrowolski
2026-03-18 13:08:26 +01:00
parent 1483aab2a7
commit 5e3d6a305d
+3 -3
View File
@@ -505,7 +505,7 @@ void LAWICELSerial::readSerialData()
if (useSystemTime) if (useSystemTime)
{ {
buildFrame.setTimeStamp(QCanBusFrame::TimeStamp::fromMicroSeconds(QDateTime::currentMSecsSinceEpoch() * 1000ul)); buildFrame.setTimeStamp(QCanBusFrame::TimeStamp(0, QDateTime::currentMSecsSinceEpoch() * 1000ll));
} }
else else
{ {
@@ -551,11 +551,11 @@ void LAWICELSerial::readSerialData()
qint64 unwrappedMs = wrapAdder + hwTs; qint64 unwrappedMs = wrapAdder + hwTs;
if (timeBasis == 0) if (timeBasis == 0)
timeBasis = sysMs - unwrappedMs; timeBasis = sysMs - unwrappedMs;
buildFrame.setTimeStamp(QCanBusFrame::TimeStamp::fromMicroSeconds((timeBasis + unwrappedMs) * 1000)); buildFrame.setTimeStamp(QCanBusFrame::TimeStamp(0, (timeBasis + unwrappedMs) * 1000ll));
} }
else else
{ {
buildFrame.setTimeStamp(QCanBusFrame::TimeStamp::fromMicroSeconds(QDateTime::currentMSecsSinceEpoch() * 1000ul)); buildFrame.setTimeStamp(QCanBusFrame::TimeStamp(0, QDateTime::currentMSecsSinceEpoch() * 1000ll));
} }
} }