Commits

Jérôme Vuarand committed 7bad2ca

The usb.init function no longer return a context by default.

  • Participants
  • Parent commits 0cbb59e

Comments (0)

Files changed (1)

 end
 
 local function list_devices(busnum, devnum, vendorid, productid)
-	local context = assert(usb.init())
-	local devices = assert(context:get_device_list())
+	assert(usb.init())
+	local devices = assert(usb.get_device_list())
 	for _,device in ipairs(devices) do
 		local descriptor = assert(device:get_device_descriptor())
 		if (not vendorid or vendorid==descriptor.idVendor)