mirror of
https://github.com/Livox-SDK/livox_ros_driver.git
synced 2023-04-06 15:49:55 +08:00
Merge pull request #25 from Livox-SDK/draft_pr
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); }
|
||||
}
|
||||
|
||||
if (ret == kParseNeedMoreData)
|
||||
break; /* */
|
||||
/* Must exit when in the below case */
|
||||
if ((ret == kParseSuccess) || (ret == kParseNeedMoreData)) break;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user