From 56d3d3db9a360053e6f2812f5b3fd6df831edccf Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 3 Jul 2004 06:59:11 +0000 Subject: [PATCH] Fix LM77 detection (Andras Bali). git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2624 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index fd38f2ca..8aa42a80 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -2922,10 +2922,15 @@ sub lm77_detect or (($low >> 12) != 0 && ($low >> 12) != 0xf) or (($high >> 12) != 0 && ($high >> 12) != 0xf); + $cur /= 16; + $hyst /= 16; + $os /= 16; + $high /= 16; + $low /= 16; # Most probable value ranges return 6 if $cur <= 100 and $hyst <= 40 - and ($os >= 20 && $os <= 127) and ($high >= 20 && $os <= 127); + and ($os >= 20 && $os <= 127) and ($high >= 20 && $high <= 127); return 3; }