Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remember busspeed #457

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Remember busspeed #457

wants to merge 4 commits into from

Conversation

consp
Copy link

@consp consp commented Feb 20, 2022

As discussed in #445 .

It's a bit crude but the bus speed update has to take place after initialization of the connection on most devices hence the different update method. The bus speed is only saved if the change was successful in the configuration screen so for some users it might look like nothing is working due to that failing. My familiarity with the QT Threading system is poor at best, maybe this was not the best way to do it but for me it works and it might be of use to others. I have no way to test it with the current supported devices so YMMV with those implementations.

Not tested on Windows/OSX as I have no working setup for those OS's.

if (portNames.count() != driverNames.count() || devTypes.count() != driverNames.count()) return;
if (portNames.count() != driverNames.count() || devTypes.count() != driverNames.count() || driverNames.count() != busNums.count()) return;

// connect tthe bus get/set
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: tthe -> the

conn_p->start();

connect(this, SIGNAL(updateBusSpeed(int, int)), conn_p, SLOT(updateBusSpeed(int, int)));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

connect(this, &ConnectionWindow::updateBusSpeed, conn_p, &CANConnection::updateBusSpeed);

Gives errors during compile time instead of runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants