fix: 2.3 firmware core

This commit is contained in:
TinyOh 2019-03-16 11:37:57 +08:00
parent 5f63df740d
commit e0d61a9c48

View File

@ -475,7 +475,9 @@ bool Channels::GetFiles(
if (file_size > 0) {
auto &&n = file_channel_.GetImgParamsFromData(
data + i, file_size, img_params);
CHECK_EQ(n, file_size);
CHECK_EQ(n, file_size)
<< "The firmware not support getting device info, you could "
"upgrade to latest";
}
} break;
case FID_IMU_PARAMS: {
@ -483,7 +485,9 @@ bool Channels::GetFiles(
if (imu_params->ok) {
auto &&n = file_channel_.GetImuParamsFromData(
data + i, file_size, imu_params);
CHECK_EQ(n, file_size);
CHECK_EQ(n, file_size)
<< "The firmware not support getting device info, you could "
"upgrade to latest";
}
} break;
default: