Skip to content

Commit

Permalink
median: fix ts_read_mt() pen down event
Browse files Browse the repository at this point in the history
We used ts_sample in ts_read_mt() which should never have happened in
the first place!

As a consequence we hadn't set all of our delay buffer to zero, as we
want to, before a pen down event.
  • Loading branch information
merge committed Mar 13, 2017
1 parent 9f1917a commit da5477e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/median.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ static int median_read_mt(struct tslib_module_info *inf,
*/
memset(c->delay_mt[j],
0,
sizeof(struct ts_sample) * c->size);
sizeof(struct ts_sample_mt) * c->size);
c->withsamples_mt[j] = 0;
#ifdef DEBUG
printf("MEDIAN: Pen Up\n");
Expand Down

0 comments on commit da5477e

Please sign in to comment.