From 03c646b92f2bb407042a905c8cab47400b185d0f Mon Sep 17 00:00:00 2001 From: Eric Jiang Date: Thu, 4 Feb 2021 13:05:31 -0800 Subject: [PATCH] Print tablet name when device is found --- huion_keys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/huion_keys.py b/huion_keys.py index e3b1750..9bf6e5c 100755 --- a/huion_keys.py +++ b/huion_keys.py @@ -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: