Changes in / [cc44f7e:51b46f2] in mainline


Ignore:
Location:
uspace
Files:
3 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/usbhid.ma

    rcc44f7e r51b46f2  
    1 10 usb&class=hid
    2 10 usb&class=HID
     1100 usb&interface&class=HID&subclass=0x01&protocol=0x01
    3210 usb&interface&class=HID
    4 10 usb&hid
  • uspace/lib/usb/src/request.c

    rcc44f7e r51b46f2  
    504504 *
    505505 * @param[in] pipe Control endpoint pipe (session must be already started).
    506  * @param[in] index String index (in native endianess).
     506 * @param[in] index String index (in native endianess),
     507 *      first index has number 1 (index from descriptors can be used directly).
    507508 * @param[in] lang String language (in native endianess).
    508509 * @param[out] string_ptr Where to store allocated string in native encoding.
     
    515516                return EBADMEM;
    516517        }
    517         /* Index is actually one byte value. */
    518         if (index > 0xFF) {
     518        /*
     519         * Index is actually one byte value and zero index is used
     520         * to retrieve list of supported languages.
     521         */
     522        if ((index < 1) || (index > 0xFF)) {
    519523                return ERANGE;
    520524        }
Note: See TracChangeset for help on using the changeset viewer.