fix: update m.queuedBytes when clamping output to avoid corrupting sentBytes

This commit is contained in:
Michael Smith
2025-12-03 09:55:31 -05:00
committed by Ron Evans
parent bd19f3baa3
commit 3afd2c3597
+1
View File
@@ -72,6 +72,7 @@ func (m *msc) scsiCmdBegin() {
if m.cbw.transferLength() < uint32(len(m.buf)) {
m.buf = m.buf[:m.cbw.transferLength()]
}
m.queuedBytes = uint32(len(m.buf))
m.sendUSBPacket(m.buf)
}
}