refactor(channels): enable check img params size

This commit is contained in:
John Zhao 2019-01-04 17:25:03 +08:00
parent 1f0c48275c
commit 49fcb60f3b

View File

@ -495,10 +495,9 @@ bool Channels::GetFiles(
case FID_IMG_PARAMS: { case FID_IMG_PARAMS: {
if (file_size > 0) { if (file_size > 0) {
CheckSpecVersion(spec_ver); CheckSpecVersion(spec_ver);
/*auto &&n = */adapter_->GetImgParamsFromData( auto &&n = adapter_->GetImgParamsFromData(
data + i, spec_ver, img_params); data + i, spec_ver, img_params);
// Considering the upgrade, comment this CHECK_EQ(n, file_size);
// CHECK_EQ(n, file_size);
} }
} break; } break;
case FID_IMU_PARAMS: { case FID_IMU_PARAMS: {