From c0f3e09c0b4bd8b8813a8545fc963c22284aa663 Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Mon, 5 Oct 2020 18:18:46 -0400 Subject: [PATCH] Fix timestamp loading for CARBusAnalyzer files --- framefileio.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framefileio.cpp b/framefileio.cpp index acb50dc..6ae5925 100644 --- a/framefileio.cpp +++ b/framefileio.cpp @@ -790,7 +790,8 @@ bool FrameFileIO::loadCARBUSAnalyzerFile(QString filename, QVector* fr if (tokens.length() > 3) { QString time = tokens[0].replace(",","."); - thisFrame.setTimeStamp(static_cast(time.toDouble() * 1000)); + double timeStamp = time.toDouble() * 1000000.0; + thisFrame.setTimeStamp(QCanBusFrame::TimeStamp(0, static_cast(timeStamp))); thisFrame.setFrameId(static_cast(tokens[3].toInt(nullptr, 16))); thisFrame.setExtendedFrameFormat(thisFrame.frameId() > 0x7FF); thisFrame.isReceived = true;