cabana SocketCanStream: support CAN-FD (#34728)

ir_power
Willem Melching 2 months ago committed by GitHub
parent 00a0547978
commit 9d65a49ee8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      tools/cabana/streams/socketcanstream.cc

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

Loading…
Cancel
Save