MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / hid_error

Function hid_error

lib/hidapi/mac/hid.c:1540–1551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1538}
1539
1540HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev)
1541{
1542 if (dev) {
1543 if (dev->last_error_str == NULL)
1544 return L"Success";
1545 return dev->last_error_str;
1546 }
1547
1548 if (last_global_error_str == NULL)
1549 return L"Success";
1550 return last_global_error_str;
1551}

Callers 6

mainFunction · 0.50
onSendOutputReportMethod · 0.50
onSendFeatureReportMethod · 0.50
onGetFeatureReportMethod · 0.50
openMethod · 0.50

Calls

no outgoing calls

Tested by 5

mainFunction · 0.40
onSendOutputReportMethod · 0.40
onSendFeatureReportMethod · 0.40
onGetFeatureReportMethod · 0.40