Skip to content

Commit

Permalink
Allow inversion of FFB direction #455
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Laurendeau committed May 23, 2017
1 parent 216865e commit 5c8c751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/haptic/ff_conv.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 5c8c751

Please sign in to comment.