Auto-detach usblp kernel driver before claiming the Datamax USB interface
deploy / deploy (push) Successful in 10s
deploy / deploy (push) Successful in 10s
This commit is contained in:
1 parent
7583d820f4
commit
af673684e2
1 file changed
+1
@@ -99,6 +99,7 @@ helpers do
|
|||||||
end
|
end
|
||||||
|
|
||||||
device.open do |handle|
|
device.open do |handle|
|
||||||
|
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)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user