mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
hid: Add extra constant to units of measurement
Some devices like eGalax touchscreens use value of 0x33 instead of 0x13
for inches as unit of measure.
Reported by: Mark Kane <mark_AT_kane_DOT_mn>
(cherry picked from commit be75951af1)
This commit is contained in:
parent
ec86cee5db
commit
a711310d2d
2 changed files with 2 additions and 0 deletions
|
|
@ -856,6 +856,7 @@ hid_item_resolution(struct hid_item *hi)
|
|||
divisor = 10;
|
||||
break;
|
||||
case HUM_INCH:
|
||||
case HUM_INCH_EGALAX:
|
||||
multiplier = 10;
|
||||
divisor = 254;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -185,6 +185,7 @@
|
|||
#define HUM_CENTIMETER 0x11
|
||||
#define HUM_RADIAN 0x12
|
||||
#define HUM_INCH 0x13
|
||||
#define HUM_INCH_EGALAX 0x33
|
||||
#define HUM_DEGREE 0x14
|
||||
|
||||
#if defined(_KERNEL) || defined(_STANDALONE)
|
||||
|
|
|
|||
Loading…
Reference in a new issue