cabana SocketCanStream: support CAN-FD (#34728)

This commit is contained in:
Willem Melching
2025-02-28 19:31:58 +01:00
committed by GitHub
parent 00a0547978
commit 9d65a49ee8

View File

@@ -27,6 +27,7 @@ bool SocketCanStream::connect() {
// These are expected and can be ignored, we don't need the advanced features of libsocketcan
QString errorString;
device.reset(QCanBus::instance()->createDevice("socketcan", config.device, &errorString));
device->setConfigurationParameter(QCanBusDevice::CanFdKey, true);
if (!device) {
qDebug() << "Failed to create SocketCAN device" << errorString;