[bootlin/training-materials] fa2529: nunchuk-mpd-client: be less strict on the expected...
Thomas Petazzoni
noreply at github.com
Fri Sep 30 16:46:23 CEST 2022
Branch: refs/heads/master
Home: https://github.com/bootlin/training-materials
Commit: fa2529fa1a29c77cfc40edc1c5b1fe685d76d258
https://github.com/bootlin/training-materials/commit/fa2529fa1a29c77cfc40edc1c5b1fe685d76d258
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date: 2022-09-30 (Fri, 30 Sep 2022)
Changed paths:
M lab-data/embedded-linux/appdev/nunchuk-mpd-client.c
Log Message:
-----------
nunchuk-mpd-client: be less strict on the expected joystick ABS_X/ABS_Y values
With my Nunchuk, I never had a 0 or 255 value in ABS_X, the min I
could get was 1, the max was 254. To accomodate for this, be a bit
more flexible on the values that trigger a song next/prev. For
consistency, we do the same for ABS_Y for volume up/down.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
More information about the training-materials-updates
mailing list