summaryrefslogtreecommitdiff
path: root/sys/dev/isa/it.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/isa/it.c')
-rw-r--r--sys/dev/isa/it.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/isa/it.c b/sys/dev/isa/it.c
index d128c80f8d8..0109826004a 100644
--- a/sys/dev/isa/it.c
+++ b/sys/dev/isa/it.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: it.c,v 1.7 2004/02/02 20:14:26 grange Exp $ */
+/* $OpenBSD: it.c,v 1.8 2004/02/10 20:01:40 grange Exp $ */
/*
* Copyright (c) 2003 Julien Bordet <zejames@greyhats.org>
@@ -313,7 +313,9 @@ it_generic_fanrpm(struct it_softc *sc, struct sensor *sensors)
break;
}
- if (sdata == 0xff || sdata == 0) {
+ if (sdata == 0xff) {
+ sensors[i].flags |= SENSOR_FINVALID;
+ } else if (sdata == 0) {
sensors[i].value = 0;
} else {
sensors[i].value = 1350000 / (sdata << divisor);