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