From 431bc938265206104567db02a7541720c881b045 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sun, 14 Nov 1999 17:45:29 +0000 Subject: [PATCH] (mds) fix as99127f detection again. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@630 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 9f696d82..e423b8d6 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -1300,7 +1300,7 @@ sub w83781d_detect my ($reg1,$reg2,@res); my ($chip,$file,$addr) = @_; return unless (i2c_smbus_read_byte_data($file,0x48) == $addr) - and ($chip < 4); + or ($chip == 4); $reg1 = i2c_smbus_read_byte_data($file,0x4e); $reg2 = i2c_smbus_read_byte_data($file,0x4f); if ($chip < 4) {