Allow setting CAN baud rate for SerialBus devices

This commit is contained in:
Collin Kidder
2018-10-21 15:07:16 -04:00
parent 25d135cdcc
commit 2df7a2a9fc
2 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -96,7 +96,8 @@ void SerialBusConnection::piSetBusSettings(int pBusIdx, CANBus bus)
}*/
//You cannot set the speed of a socketcan interface, it has to be set with console commands.
//mDev_p->setConfigurationParameter(QCanBusDevice::BitRateKey, bus.speed);
//But, you can probabaly set the speed of many of the other serialbus devices so go ahead and try
mDev_p->setConfigurationParameter(QCanBusDevice::BitRateKey, bus.speed);
/* connect device */
if (!mDev_p->connectDevice()) {