mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix typo in cyapa out of bounds check.
PR: 217783 Submitted by: razmyslov@viva64.com MFC after: 1 week
This commit is contained in:
parent
d683d1a377
commit
9c52035814
1 changed files with 1 additions and 1 deletions
|
|
@ -1455,7 +1455,7 @@ cyapa_raw_input(struct cyapa_softc *sc, struct cyapa_regs *regs, int freq)
|
|||
sc->delta_x = sc->cap_resx;
|
||||
if (sc->delta_x < -sc->cap_resx)
|
||||
sc->delta_x = -sc->cap_resx;
|
||||
if (sc->delta_y > sc->cap_resx)
|
||||
if (sc->delta_y > sc->cap_resy)
|
||||
sc->delta_y = sc->cap_resy;
|
||||
if (sc->delta_y < -sc->cap_resy)
|
||||
sc->delta_y = -sc->cap_resy;
|
||||
|
|
|
|||
Loading…
Reference in a new issue