diff options
author | Liang Qi <liang.qi@qt.io> | 2019-04-16 09:51:50 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2019-04-16 09:51:50 +0200 |
commit | 8e43d9ef9939144eddd4eb4c8442f05a827f3344 (patch) | |
tree | 7e0c748176a4f87405f6f560ec0f836d489eff09 /src/plugins/canbus | |
parent | 960861ac561f4bd4d8ce4fbe6d0643482d961f11 (diff) | |
parent | fe80eef6b3377c8727c5190d275808c343ee7c75 (diff) |
Merge remote-tracking branch 'origin/5.13' into dev
Conflicts:
examples/serialbus/modbus/adueditor/modbustcpclient_p.h
Change-Id: I620bfce752a957fdcd068c44ff039d84b7502edc
Diffstat (limited to 'src/plugins/canbus')
-rw-r--r-- | src/plugins/canbus/systeccan/systeccanbackend.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/canbus/systeccan/systeccanbackend.cpp b/src/plugins/canbus/systeccan/systeccanbackend.cpp index f33d9ba..3fdd135 100644 --- a/src/plugins/canbus/systeccan/systeccanbackend.cpp +++ b/src/plugins/canbus/systeccan/systeccanbackend.cpp @@ -479,11 +479,11 @@ bool SystecCanBackend::open() if (!d->open()) return false; - // Apply all stored configurations except bitrate, because - // the bitrate can not be applied after opening the device + // Apply all stored configurations except bitrate and receive own, + // because these cannot be applied after opening the device const QVector<int> keys = configurationKeys(); for (int key : keys) { - if (key == QCanBusDevice::BitRateKey) + if (key == BitRateKey || key == ReceiveOwnKey) continue; const QVariant param = configurationParameter(key); const bool success = d->setConfigurationParameter(key, param); |