Skip to content

Commit

Permalink
Added debugging for issue #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Heath committed Aug 17, 2015
1 parent c2ff7e8 commit acf2ff3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion portalio_hidapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ void PortalIO::OpenPortalHandle() throw (int)
{
if ((attributes->product_id == 0x150) || (attributes->product_id == 0x967))
{
// printf("Found portal usb device\n");
printf("Found portal usb device\n");
int err;

hPortalHandle = hid_open(attributes->vendor_id, attributes->product_id, NULL);
if (hPortalHandle == NULL)
{
printf ("Error communicating with Portal.\n ");
}

/*
wstr[0] = 0x0000;
Expand Down

0 comments on commit acf2ff3

Please sign in to comment.