Changeset 06f9d8fb in mainline for uspace/drv/usbhid/generic/hiddev.c
- Timestamp:
- 2011-05-30T20:02:17Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c3dafe1
- Parents:
- be8d907 (diff), 63862a0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/generic/hiddev.c
rbe8d907 r06f9d8fb 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.