From 16c719d9567e9137ef0ce3c8d1e90c92f878a0c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20S=C3=A1nchez=20Siles?= Date: Wed, 12 May 2021 13:30:07 +0200 Subject: [PATCH] Fix blf import for BLF_CAN_MSG2 When processing a BLF_CAN_MSG2 object the frame data was not actually included in the imported frame. --- blfhandler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/blfhandler.cpp b/blfhandler.cpp index b0a845a..78faf74 100644 --- a/blfhandler.cpp +++ b/blfhandler.cpp @@ -138,6 +138,7 @@ bool BLFHandler::loadBLF(QString filename, QVector* frames) frame.setFrameType(QCanBusFrame::DataFrame); for (int i = 0; i < canObject2.dlc; i++) bytes[i] = canObject2.data[i]; } + frame.setPayload(bytes); //Should we divide by a thousand or a million? Unsure here. It appears some logs are stamped in microseconds and some in milliseconds? frame.setTimeStamp(QCanBusFrame::TimeStamp(0, obj.header.v1Obj.uncompSize / 1000.0)); //uncompsize field also used for timestamp oddly enough frames->append(frame);