From e8cf0b9dd40d551165934e9b4f82960fb0c5ef91 Mon Sep 17 00:00:00 2001 From: Stefan Achatz Date: Wed, 1 Sep 2010 12:42:23 +0200 Subject: [PATCH] --- yaml --- r: 215578 b: refs/heads/master c: d2b570a5d451487f0c5026ea6113842b2eed4894 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/hid/hid-roccat-pyra.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index cac87c8873d5..7437dd344efb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cb7cf3da0daa9830e00640da8f7d2380f4b4de42 +refs/heads/master: d2b570a5d451487f0c5026ea6113842b2eed4894 diff --git a/trunk/drivers/hid/hid-roccat-pyra.c b/trunk/drivers/hid/hid-roccat-pyra.c index 6c09c15d93ed..9bf23047892a 100644 --- a/trunk/drivers/hid/hid-roccat-pyra.c +++ b/trunk/drivers/hid/hid-roccat-pyra.c @@ -902,7 +902,11 @@ static void pyra_report_to_chrdev(struct pyra_device const *pyra, if (button_event->data2 == PYRA_MOUSE_EVENT_BUTTON_PRESS) { roccat_report.type = button_event->type; roccat_report.key = button_event->data1; - roccat_report.value = pyra->actual_profile; + /* + * pyra reports profile numbers with range 1-5. + * Keeping this behaviour. + */ + roccat_report.value = pyra->actual_profile + 1; roccat_report_event(pyra->chrdev_minor, (uint8_t const *)&roccat_report, sizeof(struct pyra_roccat_report));