diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-01-06 10:56:30 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-01-06 12:36:54 +0000 |
commit | d30a88584c3ce0fdfba8adab2f3f6672fdf273f5 (patch) | |
tree | ec0b90ddef9c8bdb6cf318af01f06e04e1dab18a /src/tools | |
parent | 33d273813c118b242848dff7e7ed52472f713dd8 (diff) |
End canbusutil with error code if writeFrame() failed
Change-Id: I3040150b9093cf7b67a3f02a08c15d1cd33fa631
Reviewed-by: Rolf Eike Beer <eb@emlix.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/canbusutil/canbusutil.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/canbusutil/canbusutil.cpp b/src/tools/canbusutil/canbusutil.cpp index d578a3e..d4f3c63 100644 --- a/src/tools/canbusutil/canbusutil.cpp +++ b/src/tools/canbusutil/canbusutil.cpp @@ -258,6 +258,5 @@ bool CanBusUtil::sendData() } frame.setFrameId(id); - canDevice->writeFrame(frame); - return true; + return canDevice->writeFrame(frame); } |