mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 04:41:36 +08:00
Unittest fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user