Unittest fix

This commit is contained in:
Pavel Kirienko
2015-07-02 22:07:11 +03:00
parent 4bc7620178
commit 8d00058307
3 changed files with 8 additions and 5 deletions
+2
View File
@@ -35,6 +35,7 @@ bool Frame::parse(const CanFrame& can_frame)
{
if (can_frame.isErrorFrame() || can_frame.isRemoteTransmissionRequest() || !can_frame.isExtended())
{
UAVCAN_TRACE("Frame", "Parsing failed at line %d", __LINE__);
return false;
}
@@ -46,6 +47,7 @@ bool Frame::parse(const CanFrame& can_frame)
if (can_frame.dlc < 1)
{
UAVCAN_TRACE("Frame", "Parsing failed at line %d", __LINE__);
return false;
}