this was missing

This commit is contained in:
alessandro negrin
2025-03-29 16:52:34 +01:00
parent 49a5b761bc
commit 2f70a608e3
5 changed files with 8 additions and 12 deletions
+1 -2
View File
@@ -222,8 +222,7 @@ bool CANConManager::sendFrame(const CANFrame& pFrame)
workingFrame.isReceived = false;
if (useSystemTime)
{
qint64 currentTimeMs = QDateTime::currentMSecsSinceEpoch();
workingFrame.setTimeStamp(QCanBusFrame::TimeStamp(currentTimeMs / 1000, (currentTimeMs % 1000) * 1000));
workingFrame.setTimeStamp(QCanBusFrame::TimeStamp::fromMicroSeconds(QDateTime::currentMSecsSinceEpoch()));
}
else
{