summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-02-03 17:50:04 +0000
committerBastien Nocera <hadess@hadess.net>2012-02-03 17:50:04 +0000
commitfd507517ea115658de884e432ab87660c3592078 (patch)
tree28149d001ce9914e3ddb1bb8c67c60f4ccb15577
parentc0fd0a40819d3703e6bfbf3b4a977b521818d654 (diff)
lib: Warn when Ring2 with no Ring
-rw-r--r--libwacom/libwacom-database.c4
1 files changed, 4 insertions, 0 deletions
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);