X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fhdd_hddtemp.c;h=9a6d3d3baae410562a76b50ab67f44521436a8c2;hb=cc35e177d57bc4ee2cc57ae25f130dfc168aa61d;hp=5c50a5c81629e00d098e795e4168294078f6c2e1;hpb=b028afb4f41b141ee26e113b8b27f0d086dc8e1e;p=psensor.git diff --git a/src/lib/hdd_hddtemp.c b/src/lib/hdd_hddtemp.c index 5c50a5c..9a6d3d3 100644 --- a/src/lib/hdd_hddtemp.c +++ b/src/lib/hdd_hddtemp.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2012 jeanfi@gmail.com + * Copyright (C) 2010-2013 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -222,7 +222,7 @@ static void update(struct psensor **sensors, struct hdd_info *info) struct psensor **sensor_cur = sensors; while (*sensor_cur) { - if ((*sensor_cur)->type == SENSOR_TYPE_HDDTEMP + if ((*sensor_cur)->type & SENSOR_TYPE_HDDTEMP && !strcmp((*sensor_cur)->id + 4, info->name)) psensor_set_current_value(*sensor_cur, (float)info->temp);