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) { if (imu_params->ok) {
auto &&n = file_channel_.GetImuParamsFromData( auto &&n = file_channel_.GetImuParamsFromData(
data + i, file_size, imu_params); data + i, file_size, imu_params);
CHECK_EQ(n, file_size) // TODO(Kalman): Use CHECK_EQ
<< "The firmware not support getting device info, you could " if (n != file_size) {
"upgrade to latest"; 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; } break;
default: default: