diff options
| author | hathach <[email protected]> | 2019-12-21 19:33:41 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-12-21 19:33:41 +0700 |
| commit | 050fa2fd394912775994d4171774adb475eaf531 (patch) | |
| tree | 6910cffb182a9b5d9002ad0c2e7de307ec2d429a /src/device | |
| parent | 24009cb689e97a288cc79bae4f974aab7674f292 (diff) | |
able to response to scsi inquiry, but failed to response to test unit ready
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index 497281c2d..5832f2353 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -376,8 +376,7 @@ void tud_task (void) break;
case DCD_EVENT_SETUP_RECEIVED:
- TU_LOG2(" ");
- TU_LOG2_MEM(&event.setup_received, 1, 8);
+ TU_LOG2_MEM(&event.setup_received, 8, 2);
// Mark as connected after receiving 1st setup packet.
// But it is easier to set it every time instead of wasting time to check then set
@@ -949,6 +948,8 @@ bool usbd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t TU_VERIFY( dcd_edpt_xfer(rhport, ep_addr, buffer, total_bytes) );
_usbd_dev.ep_status[epnum][dir].busy = true;
+ TU_LOG2(" XFER Endpoint: 0x%02X, Bytes: %d\r\n", ep_addr, total_bytes);
+
return true;
}
|
