mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-19 03:54:01 +00:00
fix packetComplete()
This commit is contained in:
@@ -601,7 +601,7 @@ func (t *dhwTransfer) packetStart(data uintptr, size uint32) (next uint32) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *dhwTransfer) packetComplete(sent uint32) (data uintptr, size uint32) {
|
func (t *dhwTransfer) packetComplete(sent uint32) (data uintptr, size uint32) {
|
||||||
t.sent = sent
|
t.sent += sent
|
||||||
if size = t.size - t.sent; size > t.maxPacketSize {
|
if size = t.size - t.sent; size > t.maxPacketSize {
|
||||||
size = t.maxPacketSize
|
size = t.maxPacketSize
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user