fixed behaviour for composite types
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 21 Sep 2014 13:25:05 +0000 (15:25 +0200)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 21 Sep 2014 13:25:05 +0000 (15:25 +0200)
src/lib/psensor.c

index f266631..8a1d443 100644 (file)
@@ -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++;
        }