diff options
| author | hathach <[email protected]> | 2013-07-05 13:41:34 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-07-05 13:41:34 +0700 |
| commit | e4ff63c6049929d400ae326509399704f0d3c01c (patch) | |
| tree | c58e14f848a556fef1594c5d5b3135d1021672d9 /tinyusb/device | |
| parent | 7345a4515db401d411fdb5d5db0665e1bc071f12 (diff) | |
fix a minor bug
Diffstat (limited to 'tinyusb/device')
| -rw-r--r-- | tinyusb/device/usbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/device/usbd.c b/tinyusb/device/usbd.c index 1a70447ca..3d6687405 100644 --- a/tinyusb/device/usbd.c +++ b/tinyusb/device/usbd.c @@ -128,7 +128,7 @@ void usbd_setup_received(uint8_t coreid) usbd_device_info_t *p_device = &usbd_devices[coreid]; // check device configured TODO - if ( p_device->setup_packet.bmRequestType.recipient == TUSB_REQUEST_RECIPIENT_INTERFACE) + if ( p_device->setup_packet.bmRequestType_bit.recipient == TUSB_REQUEST_RECIPIENT_INTERFACE) { // TODO detect which class // ASSERT( p_device->setup_packet.wIndex < USBD_MAX_INTERFACE, (void) 0); @@ -163,7 +163,7 @@ void usbd_setup_received(uint8_t coreid) } } - if (p_device->setup_packet.bmRequestType.direction == TUSB_DIR_HOST_TO_DEV) + if (p_device->setup_packet.bmRequestType_bit.direction == TUSB_DIR_HOST_TO_DEV) { dcd_pipe_control_write_zero_length(coreid); } |
