mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-01 14:55:27 +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:
@@ -2922,10 +2922,15 @@ sub lm77_detect
|
|||||||
or (($low >> 12) != 0 && ($low >> 12) != 0xf)
|
or (($low >> 12) != 0 && ($low >> 12) != 0xf)
|
||||||
or (($high >> 12) != 0 && ($high >> 12) != 0xf);
|
or (($high >> 12) != 0 && ($high >> 12) != 0xf);
|
||||||
|
|
||||||
|
$cur /= 16;
|
||||||
|
$hyst /= 16;
|
||||||
|
$os /= 16;
|
||||||
|
$high /= 16;
|
||||||
|
$low /= 16;
|
||||||
|
|
||||||
# Most probable value ranges
|
# Most probable value ranges
|
||||||
return 6 if $cur <= 100 and $hyst <= 40
|
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;
|
return 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user