summaryrefslogtreecommitdiff
path: root/device.cc
diff options
context:
space:
mode:
Diffstat (limited to 'device.cc')
-rw-r--r--device.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/device.cc b/device.cc
index ddbfe85..35e7a78 100644
--- a/device.cc
+++ b/device.cc
@@ -107,13 +107,10 @@ int Device::recv(void *packet) {
throw DeviceNotConnected("Attempted HID receive on an invalid descriptor.");
}
- // FIXME extract error handling and repeating to parent function in
- // device_proto:192
for (;;) {
status = (hid_get_feature_report(mp_devhandle, (unsigned char *)(packet),
HID_REPORT_SIZE));
- // FIXME handle getting libhid error message somewhere else
auto pwherr = hid_error(mp_devhandle);
std::wstring wherr = (pwherr != nullptr) ? pwherr : L"No error message";
std::string herr(wherr.begin(), wherr.end());