diff options
| author | hathach <[email protected]> | 2018-07-25 16:56:57 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-07-25 16:56:57 +0700 |
| commit | d2ab4db25ee95058131d3b6139f9bb89d16f9cd7 (patch) | |
| tree | d75e5d6a028593164d28e1ff44cf05e35d387fd0 /examples | |
| parent | 1982886f87f87785fbc8b12dbc77393b0371bec2 (diff) | |
add scsi start stop unit struct, improve device msc, correctly stall unsupported scsi command
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/nrf52840/src/msc_device_app.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/nrf52840/src/msc_device_app.c b/examples/device/nrf52840/src/msc_device_app.c index 3f97863e4..d43767119 100644 --- a/examples/device/nrf52840/src/msc_device_app.c +++ b/examples/device/nrf52840/src/msc_device_app.c @@ -112,7 +112,7 @@ int32_t tud_msc_scsi_cb (uint8_t rhport, uint8_t lun, uint8_t const scsi_cmd[16] } // return len must not larger than bufsize - TU_ASSERT( bufsize >= len ); + if ( len > bufsize ) len = bufsize; if ( ptr && len ) { |
