Log message if get device info failed

This commit is contained in:
John Zhao 2018-04-20 12:45:40 +08:00
parent 3899b020b8
commit 045c94dda7

View File

@ -550,7 +550,9 @@ bool Channels::GetFiles(
i += 3;
switch (file_id) {
case FID_DEVICE_INFO: {
CHECK_EQ(from_data(info, data + i), file_size);
CHECK_EQ(from_data(info, data + i), file_size)
<< "The firmware not support getting device info, you could "
"upgrade to latest";
spec_ver = &info->spec_version;
CheckSpecVersion(spec_ver);
} break;