diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-09-07 23:56:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-09-07 23:56:34 +0000 |
commit | ce6a8ef113e868a0659d9c7027674e04cdf40533 (patch) | |
tree | a22167dda29b28c0fced857bd80dc44a2dff779e | |
parent | 87dd5abad3eefefc93c8f8c66158a072d735125e (diff) |
missing scale factor; from Mike Belopuhov
-rw-r--r-- | sys/dev/i2c/asc7621.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2c/asc7621.c b/sys/dev/i2c/asc7621.c index 76ed88e7965..f602264cba5 100644 --- a/sys/dev/i2c/asc7621.c +++ b/sys/dev/i2c/asc7621.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asc7621.c,v 1.1 2007/09/07 19:17:26 kettenis Exp $ */ +/* $OpenBSD: asc7621.c,v 1.2 2007/09/07 23:56:33 deraadt Exp $ */ /* * Copyright (c) 2007 Mike Belopuhov @@ -245,7 +245,7 @@ adl_refresh(void *arg) } else if (adl_worklist[i].mVscale) { volt = ((hdata << 8 | ldata)) >> (16 - 10); volt = volt * adl_worklist[i].mVscale / (192 << 2); - sc->sc_sensor[i].value = volt; + sc->sc_sensor[i].value = volt * 1000; } else { /* * Inversed to ensure that the LS byte will be read |