From affa893f1ddac29b4b1985b089d4601f235e5e32 Mon Sep 17 00:00:00 2001 From: "b.lebreton" Date: Mon, 25 Aug 2025 09:32:31 +0200 Subject: [PATCH] Add support for extended can in canlogserver --- connections/canlogserver.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/connections/canlogserver.cpp b/connections/canlogserver.cpp index 78a2bc5..2fc210f 100644 --- a/connections/canlogserver.cpp +++ b/connections/canlogserver.cpp @@ -69,16 +69,16 @@ void CanLogServer::readNetworkData() QString qstrId = lstMsg[0]; // Extract payload QString qstrPayload = lstMsg[1]; - // Support only normal can message. Extended CAN not supported. - if(qstrId.size() <= 4){ + // Check ID size + if(qstrId.size() <= 4 || qstrId.size() == 8){ // Prepare the frame CANFrame* frame_p = getQueue().get(); // Check for frame existence if(frame_p){ // Set frame ID frame_p->setFrameId(qstrId.toInt(nullptr, 16)); - // Extended frame NOT SUPPORTED - frame_p->setExtendedFrameFormat(0); + // Extended frame + frame_p->setExtendedFrameFormat(frame_p->frameId() > 0x7FF); // Set bus id frame_p->bus = qstrCanId.toInt(); // Set frame type