From 49fcb60f3bffbc070d3f51d13bf69981a0672c0d Mon Sep 17 00:00:00 2001 From: John Zhao Date: Fri, 4 Jan 2019 17:25:03 +0800 Subject: [PATCH] refactor(channels): enable check img params size --- src/mynteye/device/channels.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mynteye/device/channels.cc b/src/mynteye/device/channels.cc index 5e485d1..2310d74 100644 --- a/src/mynteye/device/channels.cc +++ b/src/mynteye/device/channels.cc @@ -495,10 +495,9 @@ bool Channels::GetFiles( case FID_IMG_PARAMS: { if (file_size > 0) { CheckSpecVersion(spec_ver); - /*auto &&n = */adapter_->GetImgParamsFromData( + auto &&n = adapter_->GetImgParamsFromData( data + i, spec_ver, img_params); - // Considering the upgrade, comment this - // CHECK_EQ(n, file_size); + CHECK_EQ(n, file_size); } } break; case FID_IMU_PARAMS: {