From 27e18c02450c856928246853f575059c4d02a61f Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 31 Jul 2003 07:32:09 +0000 Subject: [PATCH] Lower confidence for Asus chips which are not at 0x2d. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1930 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 29e9cfcf..b925ed55 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -2599,6 +2599,8 @@ sub w83781d_detect return if $chip == 7 and $reg1 != 0x70; $reg1 = i2c_smbus_read_byte_data($file,0x4a); @res = (8); + @res = (7) # Asus chips were always seen at 0x2d + if ($chip >= 4 && $chip <= 6 && $addr != 0x2d) push @res, ($reg1 & 0x07) + 0x48 unless $reg1 & 0x08 ; push @res, (($reg1 & 0x70) >> 4) + 0x48 unless ($reg1 & 0x80 or $chip == 2); return @res;