mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
HID usage minimum can be equal to the maximum.
Submitted by: Hans Petter Selasky Tested by: Andreas Tobler
This commit is contained in:
parent
470736a061
commit
3f67dc0f46
1 changed files with 1 additions and 1 deletions
|
|
@ -441,7 +441,7 @@ hid_get_item(struct hid_data *s, struct hid_item *h)
|
|||
|
||||
/* sanity check */
|
||||
if ((s->nusage < MAXUSAGE) &&
|
||||
(c->usage_minimum < c->usage_maximum)) {
|
||||
(c->usage_minimum <= c->usage_maximum)) {
|
||||
/* add usage range */
|
||||
s->usages_min[s->nusage] =
|
||||
c->usage_minimum;
|
||||
|
|
|
|||
Loading…
Reference in a new issue