mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 11:16:39 +00:00
usbboot: Delay on each bulk transfer chunk
Change-type: patch Signed-off-by: Juan Cruz Viotti <juan@balena.io>
This commit is contained in:
parent
389e9b14e4
commit
a3bd09337b
@ -249,7 +249,7 @@ exports.write = (device, endpoint, buffer) => {
|
|||||||
return Bluebird.fromCallback((callback) => {
|
return Bluebird.fromCallback((callback) => {
|
||||||
console.log(`SENDING CHUNK: ${chunk.length}`)
|
console.log(`SENDING CHUNK: ${chunk.length}`)
|
||||||
endpoint.transfer(chunk, callback)
|
endpoint.transfer(chunk, callback)
|
||||||
})
|
}).delay(USB_REQUEST_DELAY_MS)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user