From 412cba046339e983742b3c6b544a9319963ac626 Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Mon, 4 Jun 2018 19:56:06 -0400 Subject: [PATCH] Fix for bug recently introduced into SocketCAN handler that caused data bytes not to show up --- connections/serialbusconnection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/connections/serialbusconnection.cpp b/connections/serialbusconnection.cpp index e164064..a8dc36b 100644 --- a/connections/serialbusconnection.cpp +++ b/connections/serialbusconnection.cpp @@ -229,7 +229,9 @@ void SerialBusConnection::framesReceived() } else { frame_p->extended = recFrame.hasExtendedFrameFormat(); frame_p->ID = recFrame.frameId(); + frame_p->remote = (recFrame.frameType() == recFrame.RemoteRequestFrame); memcpy(frame_p->data, recFrame.payload().data(), frame_p->len); + frame_p->isReceived = true; } frame_p->isReceived = true;