diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-12-18 10:34:05 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-12-18 13:23:56 +0000 |
commit | 8e8e27abaeb6fbf5bc9fdf6ca937aff74d21244c (patch) | |
tree | cc266c2e571272008f5a8c23c7cb0586a306d24d /src/plugins/canbus/peakcan/peakcanbackend.cpp | |
parent | 790c804514fe546d6af2cb8e468283d50b21f469 (diff) |
Improve CanFD related error reporting in peakcan and tinycan
Peakcan can support CanFD but it is not implemented yet.
Tinycan doesn't seem to support it.
Change-Id: I274421ccdad831daa18320a06bbc8b94a3fdd710
Reviewed-by: Rolf Eike Beer <eb@emlix.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/plugins/canbus/peakcan/peakcanbackend.cpp')
-rw-r--r-- | src/plugins/canbus/peakcan/peakcanbackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/canbus/peakcan/peakcanbackend.cpp b/src/plugins/canbus/peakcan/peakcanbackend.cpp index 4e3059a..41d8763 100644 --- a/src/plugins/canbus/peakcan/peakcanbackend.cpp +++ b/src/plugins/canbus/peakcan/peakcanbackend.cpp @@ -524,9 +524,9 @@ bool PeakCanBackend::writeFrame(const QCanBusFrame &newData) return false; } + // canFD frame format not implemented at this stage if (newData.payload().size() > 8) { - setError(tr("Unable to write a frame with unacceptable payload size"), - QCanBusDevice::WriteError); + setError(tr("CanFD frame format not supported."), QCanBusDevice::WriteError); return false; } |