Merge pull request #405 from tannewt/remove_double_csw

atmel-samd: Stop double CSW after MSC reads
This commit is contained in:
Dan Halbert 2017-11-03 20:34:10 -04:00 committed by GitHub
commit 5ff641772a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,7 +273,6 @@ int32_t usb_msc_xfer_done(uint8_t lun) {
void usb_msc_background(void) {
if (active_read && !usb_busy) {
if (active_nblocks == 0) {
mscdf_xfer_blocks(false, NULL, 0);
active_read = false;
return;
}