From efc4de55a99e6e0f5745c9921479b495b02ded2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Drahn=C3=ADk?= Date: Mon, 20 Feb 2023 20:27:49 +0100 Subject: [PATCH] Reverted accidentally changed lines --- asus_touchpad.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/asus_touchpad.py b/asus_touchpad.py index 3946e5c..b5a0138 100755 --- a/asus_touchpad.py +++ b/asus_touchpad.py @@ -544,17 +544,14 @@ def get_system_numlock(): if not dev_k: return None - for event in dev_k.read_loop(): - if event.code == EV_KEY.KEY_CAPSLOCK: - log.info(event) - #leds_k = dev_k.leds(verbose=True) + leds_k = dev_k.leds(verbose=True) - #led_numl_list = list(filter(lambda x: 'LED_NUML' in x, leds_k)) + led_numl_list = list(filter(lambda x: 'LED_NUML' in x, leds_k)) - #if len(led_numl_list): - # return True - #else: - # return False + if len(led_numl_list): + return True + else: + return False def local_numlock_pressed():