Skip to content

Commit

Permalink
tools: fix ptraccel-debug tool for the new trackpoint multiplier
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
  • Loading branch information
talyz committed Aug 22, 2018
1 parent 621e224 commit f82eeae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/ptraccel-debug.c
Expand Up @@ -224,7 +224,7 @@ main(int argc, char **argv)
int dpi = 1000;
const char *filter_type = "linear";
accel_profile_func_t profile = NULL;
int tp_range_max = 20;
double tp_multiplier = 1.0;

enum {
OPT_HELP = 1,
Expand Down Expand Up @@ -326,7 +326,7 @@ main(int argc, char **argv)
filter = create_pointer_accelerator_filter_lenovo_x230(dpi);
profile = touchpad_lenovo_x230_accel_profile;
} else if (streq(filter_type, "trackpoint")) {
filter = create_pointer_accelerator_filter_trackpoint(tp_range_max);
filter = create_pointer_accelerator_filter_trackpoint(tp_multiplier);
profile = trackpoint_accel_profile;
} else {
fprintf(stderr, "Invalid filter type %s\n", filter_type);
Expand Down

0 comments on commit f82eeae

Please sign in to comment.