Skip to content

Commit 14459df

Browse files
committed
fix: add missing m.queuedBytes accounting
1 parent 64281df commit 14459df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/machine/usb/msc/msc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ func (m *msc) sendCSW(status csw.Status) {
168168
}
169169
m.cbw.CSW(status, residue, m.cswBuf)
170170
m.state = mscStateStatusSent
171+
m.queuedBytes = csw.MsgLen
171172
m.sendUSBPacket(m.cswBuf)
172173
}
173174

0 commit comments

Comments
 (0)