From 165c1bca75d5a0d19ba9d93d92ae49c2101738d9 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 3 Dec 2008 12:05:18 +0000 Subject: [PATCH] Skip non-hwmon devices. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5510 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect-stat.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prog/detect/sensors-detect-stat.pl b/prog/detect/sensors-detect-stat.pl index b82fa7f2..85d6d968 100755 --- a/prog/detect/sensors-detect-stat.pl +++ b/prog/detect/sensors-detect-stat.pl @@ -57,7 +57,9 @@ while () { # Some chips are handled differently depending on the kernel # version, avoid counting them twice. - if (m/^\@chip_kern24_ids\s*=/ || m/^\@chip_oldfsc_ids\s*=/) { + if (m/^\@chip_kern24_ids\s*=/ + || m/^\@chip_oldfsc_ids\s*=/ + || m/^\@non_hwmon_chip_ids\s*=/) { $skip = 1; next; }