Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 0815000 in mainline


Ignore:
Timestamp:
2011-08-26T07:14:06Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
07f49ae
Parents:
f974519
Message:

libusbhost: Clarify usage of speed parameter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/iface.c

    rf974519 r0815000  
    181181        assert(hcd);
    182182        const size_t size = max_packet_size;
    183         usb_speed_t speed =
     183        /* Default address is not bound or registered,
     184         * thus it does not provide speed info. */
     185        const usb_speed_t speed = (address == 0) ? ep_speed :
    184186            usb_device_keeper_get_speed(&hcd->dev_manager, address);
    185         if (speed >= USB_SPEED_MAX) {
    186                 // Does this happen?
    187                 speed = ep_speed;
    188         }
     187
    189188        usb_log_debug("Register endpoint %d:%d %s-%s %s %zuB %ums.\n",
    190189            address, endpoint, usb_str_transfer_type(transfer_type),
Note: See TracChangeset for help on using the changeset viewer.