fix(channels): fix imu params checkeq bug

This commit is contained in:
kalman 2019-03-19 11:08:19 +08:00
parent 8400966a5c
commit 8b07e18c23

View File

@ -485,9 +485,13 @@ bool Channels::GetFiles(
if (imu_params->ok) {
auto &&n = file_channel_.GetImuParamsFromData(
data + i, file_size, imu_params);
CHECK_EQ(n, file_size)
<< "The firmware not support getting device info, you could "
"upgrade to latest";
// TODO(Kalman): Use CHECK_EQ
if (n != file_size) {
LOG(WARNING) << "Wrong sizes of imu params";
}
// CHECK_EQ(n, file_size)
// << "The firmware not support getting device info, you could "
// "upgrade to latest";
}
} break;
default: