Changeset 37b4794e in mainline for uspace/lib/usb/src/request.c
- Timestamp:
- 2011-02-25T12:18:17Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0e3505a
- Parents:
- 11f1817
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/request.c
r11f1817 r37b4794e 502 502 * 503 503 * @param[in] pipe Control endpoint pipe (session must be already started). 504 * @param[in] index String index (in native endianess). 504 * @param[in] index String index (in native endianess), 505 * first index has number 1 (index from descriptors can be used directly). 505 506 * @param[in] lang String language (in native endianess). 506 507 * @param[out] string_ptr Where to store allocated string in native encoding. … … 513 514 return EBADMEM; 514 515 } 515 /* Index is actually one byte value. */ 516 if (index > 0xFF) { 516 /* 517 * Index is actually one byte value and zero index is used 518 * to retrieve list of supported languages. 519 */ 520 if ((index < 1) || (index > 0xFF)) { 517 521 return ERANGE; 518 522 }
Note:
See TracChangeset
for help on using the changeset viewer.