mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 19:43:44 +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) {
|
||||
t.sent = sent
|
||||
t.sent += sent
|
||||
if size = t.size - t.sent; size > t.maxPacketSize {
|
||||
size = t.maxPacketSize
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user