mirror of
https://github.com/erjiang/huion-keys.git
synced 2026-03-23 13:44:52 +03:00
Print tablet name when device is found
This commit is contained in:
parent
13e40d0025
commit
03c646b92f
@ -29,12 +29,12 @@ def main():
|
||||
for device_name, device_id in TABLET_MODELS.items():
|
||||
hidraw_path = get_tablet_hidraw(device_id)
|
||||
if hidraw_path is not None:
|
||||
print("Found %s at %s" % (device_name, hidraw_path))
|
||||
break
|
||||
if hidraw_path is None:
|
||||
print("Could not find tablet hidraw device")
|
||||
time.sleep(2)
|
||||
continue
|
||||
print("Found tablet at " + hidraw_path)
|
||||
try:
|
||||
hidraw = open(hidraw_path, 'rb')
|
||||
except PermissionError as e:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user