summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2011-03-12 13:27:30 +0000
committerkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2011-03-12 13:27:30 +0000
commit4d61d66e9b2570c7082c8815fd0519a4d6aa2d06 (patch)
treeb8eb69034efccfbfd89b9eef6179b532e10eab98
parent163b22e2bf4e073c952970e3596ce10605c2aa0b (diff)
downloadlm-sensors-4d61d66e9b2570c7082c8815fd0519a4d6aa2d06.tar.gz
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
-rwxr-xr-xprog/detect/sensors-detect4
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect
index 160c1cf0..79aaa7ce 100755
--- a/prog/detect/sensors-detect
+++ b/prog/detect/sensors-detect
@@ -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;
}