Skip to content

Commit

Permalink
pthres: read_mt: fix internal pressure state handling
Browse files Browse the repository at this point in the history
  • Loading branch information
merge committed Mar 19, 2017
1 parent c71c05d commit 9a9b0c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/pthres.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ static int pthres_read_mt(struct tslib_module_info *info,
continue;

if (samp[i][j].pressure < p->pmin) {
if (p->press != 0) {
if (p->press[j] != 0) {
/* release */
p->press[j] = 0;
samp[i][j].pressure = 0;
Expand Down

0 comments on commit 9a9b0c9

Please sign in to comment.