more change for Python

This commit is contained in:
NIIBE Yutaka
2015-08-04 11:57:46 +09:00
parent a6fd40d4fd
commit 254742bc6d
7 changed files with 20 additions and 28 deletions

View File

@@ -41,9 +41,9 @@ def gnuk_devices_by_vidpid():
field = ['', 'Vendor', 'Product', 'Serial', 'Revision', 'Config', 'Sys', 'Board']
def main(n):
for dev in gnuk_devices():
for dev in gnuk_devices_by_vidpid():
handle = dev.open()
print("Device: " % dev.filename)
print("Device: %s" % dev.filename)
try:
for i in range(1,n):
s = handle.getString(i, 512)