fix:fix protocol parse bug

This commit is contained in:
Livox-SDK
2020-04-26 11:31:45 +08:00
parent 2002337d93
commit c911ca2392
2 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 115 KiB

View File

@@ -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;