server can if

fix warning of clazy range loop detach
This commit is contained in:
2026-02-14 14:31:09 +01:00
parent 8dbd541850
commit 2c8db0c693
+1 -1
View File
@@ -32,7 +32,7 @@ void CAN_Interface::connect_to_dev(QString dev)
m_canDevice->connectDevice(); m_canDevice->connectDevice();
connect(m_canDevice, &QCanBusDevice::framesReceived, this, [this] { connect(m_canDevice, &QCanBusDevice::framesReceived, this, [this] {
for (const QCanBusFrame &frame : m_canDevice->readAllFrames()) for (QCanBusFrame &frame : m_canDevice->readAllFrames())
{ {
emit frame_received(frame); emit frame_received(frame);
} }