Bring the handling of the y axis in the ums driver in-line with the other

axes.

No functional change.

Submitted by:	Vicki Pfau (vi AT endrift.com)
Approved by:	hps
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D9595
This commit is contained in:
Peter Grehan 2017-03-22 17:06:57 +00:00
parent b9c1cdd190
commit e9517d2481

@ -283,7 +283,7 @@ ums_intr_callback(struct usb_xfer *xfer, usb_error_t error)
if ((info->sc_flags & UMS_FLAG_Y_AXIS) &&
(id == info->sc_iid_y))
dy = -hid_get_data(buf, len, &info->sc_loc_y);
dy -= hid_get_data(buf, len, &info->sc_loc_y);
if ((info->sc_flags & UMS_FLAG_Z_AXIS) &&
(id == info->sc_iid_z)) {