diff --git a/include/ascs/ext/unpacker.h b/include/ascs/ext/unpacker.h index 09509550fb76bf5ff47f779320e3ef9d2b5c3a19..4d23b9796c8af90b4d922374ccdd04eac8feeec3 100644 --- a/include/ascs/ext/unpacker.h +++ b/include/ascs/ext/unpacker.h @@ -394,8 +394,7 @@ public: else if (remain_len > 0) memcpy(&*std::begin(raw_buff), pnext, remain_len); //left behind unparsed msg - //if unpacking failed, successfully parsed msgs will still returned via msg_can(sticky package), please note. - return unpack_ok; + return true; } //a return value of 0 indicates that the read operation is complete. a non-zero value indicates the maximum number