Increase bulk_transfer timeout to 30s for large ZPL payloads over USB 1.1
deploy / deploy (push) Successful in 8s
deploy / deploy (push) Successful in 8s
This commit is contained in:
1 parent
af673684e2
commit
3833452fa9
1 file changed
+1
-1
@@ -101,7 +101,7 @@ helpers do
|
|||||||
device.open do |handle|
|
device.open do |handle|
|
||||||
handle.auto_detach_kernel_driver = true # usblp kernel driver otherwise holds the interface
|
handle.auto_detach_kernel_driver = true # usblp kernel driver otherwise holds the interface
|
||||||
handle.claim_interface(0) do
|
handle.claim_interface(0) do
|
||||||
handle.bulk_transfer(endpoint: DATAMAX_ENDPOINT, dataOut: data)
|
handle.bulk_transfer(endpoint: DATAMAX_ENDPOINT, dataOut: data, timeout: 30_000) # USB 1.1, large ZPL payloads need more than the 1s default
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user