Skip to content

Commit

Permalink
clarify why device is not support accessory
Browse files Browse the repository at this point in the history
  • Loading branch information
vvviperrr committed Aug 16, 2016
1 parent 64f10b1 commit b62d848
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simple-rt-cli/src/linux-adk.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ int init_accessory(accessory_t *acc)
AOA_GET_PROTOCOL, 0, 0, buffer,
sizeof(buffer), 0);
if (ret < 0) {
printf("Device is not support accessory!\n");
printf("Device %4.4x:%4.4x is not support accessory! Reason: %s\n",
acc->vid, acc->pid, libusb_strerror(ret));
return ret;
} else {
acc->aoa_version = ((buffer[1] << 8) | buffer[0]);
Expand Down

0 comments on commit b62d848

Please sign in to comment.