From 6eeae23e421df31b2cd847cd0b9e6cb68335657d Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri, 3 Aug 2018 08:13:54 +1000
Subject: [PATCH] examples/evtest: fix LED handling, still had the old API

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
---
 examples/evtest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/evtest.py b/examples/evtest.py
index 0c16980..4acddf7 100755
--- a/examples/evtest.py
+++ b/examples/evtest.py
@@ -22,7 +22,7 @@ def print_capabilities(l):
 
         for c in cs:
             if t in [libevdev.EV_LED, libevdev.EV_SND, libevdev.EV_SW]:
-                v = l.event_value(t, c)
+                v = l.value[c]
                 print("    Event code {} ({}) state {}".format(c.value, c.name, v))
             else:
                 print("    Event code {} ({})".format(c.value, c.name))
-- 
GitLab