From 045c94dda71bd0f20f37ca4009d05fc1dc1d3ec2 Mon Sep 17 00:00:00 2001 From: John Zhao Date: Fri, 20 Apr 2018 12:45:40 +0800 Subject: [PATCH] Log message if get device info failed --- src/internal/channels.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/internal/channels.cc b/src/internal/channels.cc index c1a9249..51e8f74 100644 --- a/src/internal/channels.cc +++ b/src/internal/channels.cc @@ -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;