From 3c74b493943df6a09e0108fe6009b39ab66c8856 Mon Sep 17 00:00:00 2001 From: "ron.zheng" Date: Sat, 8 Oct 2022 12:15:35 +0800 Subject: [PATCH] feat: disable blk_id error to be compatible with v1.3.x --- src/rs_driver/driver/decoder/decoder_RS128.hpp | 4 ++++ src/rs_driver/driver/decoder/decoder_RS80.hpp | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/rs_driver/driver/decoder/decoder_RS128.hpp b/src/rs_driver/driver/decoder/decoder_RS128.hpp index cda54464..bbc21ee7 100644 --- a/src/rs_driver/driver/decoder/decoder_RS128.hpp +++ b/src/rs_driver/driver/decoder/decoder_RS128.hpp @@ -240,7 +240,11 @@ inline bool DecoderRS128::internDecodeMsopPkt(const uint8_t* packe if (memcmp(this->const_param_.BLOCK_ID, block.id, 1) != 0) { + // + // Disable error report temporarily + // //this->cb_excep_(Error(ERRCODE_WRONGMSOPBLKID)); + break; } diff --git a/src/rs_driver/driver/decoder/decoder_RS80.hpp b/src/rs_driver/driver/decoder/decoder_RS80.hpp index 52aecb75..0c0b6d99 100644 --- a/src/rs_driver/driver/decoder/decoder_RS80.hpp +++ b/src/rs_driver/driver/decoder/decoder_RS80.hpp @@ -235,7 +235,11 @@ inline bool DecoderRS80::internDecodeMsopPkt(const uint8_t* packet if (memcmp(this->const_param_.BLOCK_ID, block.id, 1) != 0) { - this->cb_excep_(Error(ERRCODE_WRONGMSOPBLKID)); + // + // Disable error report temporarily + // + //this->cb_excep_(Error(ERRCODE_WRONGMSOPBLKID)); + break; }