From fd507517ea115658de884e432ab87660c3592078 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 3 Feb 2012 17:50:04 +0000 Subject: lib: Warn when Ring2 with no Ring --- libwacom/libwacom-database.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libwacom/libwacom-database.c b/libwacom/libwacom-database.c index 0aa1253..91d163b 100644 --- a/libwacom/libwacom-database.c +++ b/libwacom/libwacom-database.c @@ -274,6 +274,10 @@ libwacom_parse_tablet_keyfile(const char *path) device->features & FEATURE_REVERSIBLE) g_warning ("Tablet '%s' is both reversible and builtin. This is impossible", device->match); + if (!(device->features & FEATURE_RING) && + (device->features & FEATURE_RING2)) + g_warning ("Table '%s' has Ring2 but no Ring. This is impossible", device->match); + device->num_strips = g_key_file_get_integer(keyfile, FEATURE_GROUP, "NumStrips", NULL); device->num_buttons = g_key_file_get_integer(keyfile, FEATURE_GROUP, "Buttons", NULL); -- cgit v1.2.3