Fix crash bug when trying to send to a socketcan device that wasn't properly opened.

This commit is contained in:
Collin Kidder
2017-01-05 18:37:04 -05:00
parent a25b6cacf4
commit 5caef500a7
+2
View File
@@ -109,6 +109,8 @@ bool SocketCan::piSendFrame(const CANFrame& pFrame)
if(0 != pFrame.bus || pFrame.len>8)
return false;
if (!mDev_p) return false;
/* fill frame */
QCanBusFrame frame;
frame.setFrameId(pFrame.ID);