Merge pull request #895 from wernerc11/complete_connection_save

Implemented connection save with speeds and can fd at least for bus 0.
This commit is contained in:
Collin Kidder
2025-05-05 18:35:22 -04:00
committed by GitHub
6 changed files with 44 additions and 11 deletions
+2 -2
View File
@@ -11,8 +11,8 @@
/**** class definition ****/
/***********************************/
SerialBusConnection::SerialBusConnection(QString portName, QString driverName) :
CANConnection(portName, driverName, CANCon::SERIALBUS,0 ,0, false, 0 ,1, 4000, true),
SerialBusConnection::SerialBusConnection(QString portName, QString driverName, int pBusSpeed, int pDataRate, bool pCanFd) :
CANConnection(portName, driverName, CANCon::SERIALBUS,0 ,pBusSpeed, pCanFd, pDataRate ,1, 4000, true),
mTimer(this) /*NB: set connection as parent of timer to manage it from working thread */
{
}