From 5c8c751652b5bb447e34c54e1d8c1eff2eb940e5 Mon Sep 17 00:00:00 2001 From: Mathieu Laurendeau Date: Tue, 23 May 2017 21:05:36 +0200 Subject: [PATCH] Allow inversion of FFB direction #455 --- core/haptic/ff_conv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/haptic/ff_conv.c b/core/haptic/ff_conv.c index 5760dc5c..09b779dd 100644 --- a/core/haptic/ff_conv.c +++ b/core/haptic/ff_conv.c @@ -322,7 +322,7 @@ void ff_conv_process_report(int device, const unsigned char data[FF_LG_OUTPUT_RE break; } } else { - unsigned short range = 0; + unsigned short range = 0; switch(data[1]) { case FF_LG_EXT_CMD_WHEEL_RANGE_200_DEGREES: range = 200; @@ -395,7 +395,7 @@ int ff_conv_set_tweaks(int device, int invert) { CHECK_DEVICE(device, -1) - dprintf("FFB invert: %s\n", invert ? "yes" : "no"); + ncprintf("FFB invert: %s\n", invert ? "yes" : "no"); ff_lg_device[device].invert = invert;