mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-28 12:40:42 +00:00
0xffff isn't a valid I/O address either.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5940 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
cae654385e
commit
249239b213
1 file changed
+2
-2
@@ -3645,14 +3645,14 @@ sub probe_superio
|
||||
outb($addrreg, $superio{actreg});
|
||||
$val = inb($datareg);
|
||||
if (!($val & $superio{actmask})) {
|
||||
if ($addr) {
|
||||
if ($addr && $addr != 0xffff) {
|
||||
printf "\n (address 0x\%x, but not activated)\n", $addr;
|
||||
} else {
|
||||
print "\n (but not activated)\n";
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
if ($addr == 0) {
|
||||
if ($addr == 0 || $addr == 0xffff) {
|
||||
print "\n (but no address specified)\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user