From cb86bb0c351d6f923a83850f0d496a5f1cca51b8 Mon Sep 17 00:00:00 2001 From: Mathieu Laurendeau Date: Fri, 9 Dec 2016 21:05:00 +0100 Subject: [PATCH] Print wheel range changes. --- core/haptic/ff_lg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/haptic/ff_lg.c b/core/haptic/ff_lg.c index 58655201..e3512aa6 100644 --- a/core/haptic/ff_lg.c +++ b/core/haptic/ff_lg.c @@ -283,6 +283,7 @@ static void set_wheel_range(int device, unsigned short range) { full_range = 200; } process_extended(device, report1, 1); + ncprintf("wheel range adjusted to %hu degrees\n", full_range); if (range != full_range) { static int warn = 1; if (warn == 1) { @@ -311,6 +312,7 @@ static void set_wheel_range(int device, unsigned short range) { range >> 8 }; process_extended(device, change_wheel_range, 0); + ncprintf("wheel range adjusted to %hu degrees\n", range); } } @@ -330,7 +332,6 @@ int ff_lg_init(int device, unsigned short src_pid, unsigned short dst_pid) { if (src_range != 0 && ff_lg_device[device].dst.range == 0) { // source wheel range is fixed and dest wheel supports adjusting the range set_wheel_range(device, src_range); - ncprintf("wheel range adjusted to %hu degrees\n", src_range); } return 0;