Skip to content

Commit

Permalink
Merge pull request #413 from tlambert03/remove-hid-print
Browse files Browse the repository at this point in the history
Remove printf statements during HID device init
  • Loading branch information
nicost authored Dec 12, 2023
2 parents 605caee + 67f5585 commit 3b18136
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions DeviceAdapters/HIDManager/HIDManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,8 @@ void HIDDeviceLister::ListHIDDevices(std::vector<std::string> &availableDevices)
// lists all HID Devices on this system that we know about
void HIDDeviceLister::FindHIDDevices(std::vector<std::string> &availableDevices)
{
printf("Discovering HID Devices......\n");
// see https://github.com/micro-manager/mmCoreAndDevices/issues/402
// printf("Discovering HID Devices......\n");

struct hid_device_info *devs, *curDev;

Expand All @@ -613,14 +614,14 @@ void HIDDeviceLister::FindHIDDevices(std::vector<std::string> &availableDevices)

while (curDev)
{
printf ("HID Device pid: %04hx vid: %04hx\n", curDev->product_id, curDev->product_id);
// printf ("HID Device pid: %04hx vid: %04hx\n", curDev->product_id, curDev->product_id);
for (int i=0; i<g_numberKnownDevices; i++)
{
if ( (curDev->vendor_id == g_knownDevices[i].idVendor) &&
(curDev->product_id == g_knownDevices[i].idProduct) )
{
availableDevices.push_back(g_knownDevices[i].name);
printf ("HID Device found: %s\n", g_knownDevices[i].name.c_str());
// printf ("HID Device found: %s\n", g_knownDevices[i].name.c_str());
}
}
curDev = curDev->next;
Expand Down

0 comments on commit 3b18136

Please sign in to comment.