Changes in uspace/drv/usbhid/generic/hiddev.c [0d59d0e9:19e0560e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/generic/hiddev.c
r0d59d0e9 r19e0560e 126 126 } 127 127 128 /*! @todo This should probably be atomic. */ 129 // if (usb_hid_report_ready()) { 130 // usb_log_debug2("Report ready, size: %zu\n", 131 // hid_dev->input_report_size); 132 133 // usb_hid_report_received(); 134 // } else { 135 // memset(buffer, 0, hid_dev->input_report_size); 136 // } 128 /*! @todo This should probably be somehow atomic. */ 137 129 memcpy(buffer, hid_dev->input_report, 138 130 hid_dev->input_report_size); … … 140 132 *event_nr = usb_hid_report_number(hid_dev); 141 133 142 // clear the buffer so that it will not be received twice143 //memset(hid_dev->input_report, 0, hid_dev->input_report_size);144 145 // note that we already received this report146 // report_received = true;147 134 usb_log_debug2("OK\n"); 148 135 … … 184 171 185 172 if (hid_dev->report_desc_size > size) { 186 return EINVAL; // TODO: other error code173 return EINVAL; 187 174 } 188 175
Note:
See TracChangeset
for help on using the changeset viewer.