fix a problem with dcd 13uxx dcd_pipe_clear_stall that should clear toggle for buffer0 (instead of active buffer)

as the next transfer is always forced to be happened on buffer0
This commit is contained in:
hathach
2014-03-13 17:06:18 +07:00
parent 1940f9f0f7
commit 8fbafc460c
2 changed files with 5 additions and 4 deletions

View File

@@ -105,7 +105,7 @@ uint16_t tusbd_msc_read10_cb (uint8_t coreid, uint8_t lun, void** pp_buffer, uin
return 1;
}
// Stall write10 as this is readonly disk
// Stall write10 by return 0, as this is readonly disk
uint16_t tusbd_msc_write10_cb(uint8_t coreid, uint8_t lun, void** pp_buffer, uint32_t lba, uint16_t block_count)
{
(*pp_buffer) = NULL;