Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215578
b: refs/heads/master
c: d2b570a
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Achatz authored and Jiri Kosina committed Sep 1, 2010
1 parent 58f64f8 commit e8cf0b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb7cf3da0daa9830e00640da8f7d2380f4b4de42
refs/heads/master: d2b570a5d451487f0c5026ea6113842b2eed4894
6 changes: 5 additions & 1 deletion trunk/drivers/hid/hid-roccat-pyra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit e8cf0b9

Please sign in to comment.