mirror of
https://github.com/Livox-SDK/livox_ros_driver.git
synced 2023-04-06 15:49:55 +08:00
fix:fix protocol parse bug
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 115 KiB |
@@ -131,8 +131,8 @@ int32_t CommProtocol::ParseCommStream(CommPacket *o_pack) {
|
|||||||
default: { FsmParserStateTransfer(kSearchPacketPreamble); }
|
default: { FsmParserStateTransfer(kSearchPacketPreamble); }
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret == kParseNeedMoreData)
|
/* Must exit when in the below case */
|
||||||
break; /* */
|
if ((ret == kParseSuccess) || (ret == kParseNeedMoreData)) break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user