mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-28 12:40:42 +00:00
Fix busy flag detection. Some Super-I/O chips (W83627THF) can't read
back from the address port, so the value 0xff is returned, causing a false positive with the original test. Testing explicitly for 0x80 instead of only testing that bit 7 is set, works around it. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4404 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
0b0888128f
commit
d6aa3f5487
1 file changed
+1
-1
+1
-1
@@ -293,7 +293,7 @@ int main(int argc, char *argv[])
|
||||
res = inb(addrreg + i + j);
|
||||
} else {
|
||||
outb(i+j, addrreg);
|
||||
if (i+j == 0 && (inb(addrreg) & 0x80)) {
|
||||
if (i+j == 0 && inb(addrreg) == 0x80) {
|
||||
/* Bit 7 appears to be a busy flag */
|
||||
range = 128;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user