Ignore:
Timestamp:
2011-11-04T19:04:58Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3238506
Parents:
6b6fc232
Message:

libusbhost: Make sure USB_DEFAULT_ADDRESS won't get assigned if not in strict mode

File:
1 edited

Legend:

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

    r6b6fc232 rbbd09694  
    8080                instance->devices[i].speed = USB_SPEED_MAX;
    8181        }
    82         instance->last_address = 0;
     82        instance->last_address = 1;
    8383        instance->max_speed = max_speed;
    8484        fibril_mutex_initialize(&instance->guard);
     
    118118        assert(instance->devices[*address].occupied == false);
    119119        assert(instance->devices[*address].handle == 0);
     120        assert(*address != USB_ADDRESS_DEFAULT || strict);
    120121
    121122        instance->devices[*address].occupied = true;
Note: See TracChangeset for help on using the changeset viewer.