From 10604e4b0397ea4e198573cfdc9e1c57e73989b9 Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Thu, 30 Jan 2025 11:08:29 +0100 Subject: [PATCH] CAN interface / wrapper try to get it to function with can ui --- tools/CAN/CAN_interface.cpp | 1 + tools/CAN/CAN_interface.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/CAN/CAN_interface.cpp b/tools/CAN/CAN_interface.cpp index 4483bf7..355bbe3 100644 --- a/tools/CAN/CAN_interface.cpp +++ b/tools/CAN/CAN_interface.cpp @@ -39,6 +39,7 @@ CAN_Interface::~CAN_Interface() void CAN_Interface::send_frame(const QCanBusFrame &frame) { m_canDevice->writeFrame(frame); + emit frame_send(frame); } void CAN_Interface::processErrors(QCanBusDevice::CanBusError error) const diff --git a/tools/CAN/CAN_interface.hpp b/tools/CAN/CAN_interface.hpp index e3db1dc..427e232 100644 --- a/tools/CAN/CAN_interface.hpp +++ b/tools/CAN/CAN_interface.hpp @@ -14,6 +14,7 @@ class CAN_Interface : public QObject void send_frame(const QCanBusFrame &frame); signals: void frame_received(const QCanBusFrame frame); + void frame_send(const QCanBusFrame frame); private: void processErrors(QCanBusDevice::CanBusError error) const;