From: Jean-Philippe Orsini Date: Sun, 21 Sep 2014 13:25:05 +0000 (+0200) Subject: fixed behaviour for composite types X-Git-Tag: v1.1.2~8 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=7cf47f8e660b7a2306565d8e744ad2de62cce402 fixed behaviour for composite types --- diff --git a/src/lib/psensor.c b/src/lib/psensor.c index f266631..8a1d443 100644 --- a/src/lib/psensor.c +++ b/src/lib/psensor.c @@ -161,7 +161,7 @@ bool psensor_list_contains_type(struct psensor **sensors, unsigned int type) return false; while (*sensors) { - if ((*sensors)->type & type) + if (((*sensors)->type & type) == type) return true; sensors++; }