2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

Fix LM77 detection (Andras Bali).

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2624 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2004-07-03 06:59:11 +00:00
parent 49db6d7a10
commit 56d3d3db9a

View File

@@ -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;
}