Skip to content

Commit

Permalink
HID: fixed bug in single-touch emulation on the stantum panel
Browse files Browse the repository at this point in the history
Fixed stupid copy-paste bug in touchscreen emulation for the Stantum multitouch
panel: a flag was reset just before being tested.

Signed-off-by: Stephane Chatty <chatty@enac.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Stephane Chatty authored and Jiri Kosina committed Feb 10, 2010
1 parent eabe5c9 commit b32758c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-stantum.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ static void stantum_filter_event(struct stantum_data *sd,

input_mt_sync(input);
sd->valid = false;
sd->first = false;

/* touchscreen emulation */
if (sd->first) {
Expand All @@ -158,6 +157,7 @@ static void stantum_filter_event(struct stantum_data *sd,
input_event(input, EV_ABS, ABS_X, sd->x);
input_event(input, EV_ABS, ABS_Y, sd->y);
}
sd->first = false;
}


Expand Down

0 comments on commit b32758c

Please sign in to comment.