diff options
author | 2006-04-14 15:48:41 +0000 | |
---|---|---|
committer | 2006-04-14 15:48:41 +0000 | |
commit | 21be649a291b8a0dadaab7231e39897fb5122989 (patch) | |
tree | 203828cc19f2426cf41a5472b47c669b01f479ae /sys/dev/i2c | |
parent | Remove global variable RCSFILE. (diff) | |
download | wireguard-openbsd-21be649a291b8a0dadaab7231e39897fb5122989.tar.xz wireguard-openbsd-21be649a291b8a0dadaab7231e39897fb5122989.zip |
fix +12v conversion, because of stupid C; wilfried
Diffstat (limited to 'sys/dev/i2c')
-rw-r--r-- | sys/dev/i2c/adt7460.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2c/adt7460.c b/sys/dev/i2c/adt7460.c index 1b74d03514a..618d821c570 100644 --- a/sys/dev/i2c/adt7460.c +++ b/sys/dev/i2c/adt7460.c @@ -1,4 +1,4 @@ -/* $OpenBSD: adt7460.c,v 1.11 2006/04/13 05:30:24 deraadt Exp $ */ +/* $OpenBSD: adt7460.c,v 1.12 2006/04/14 15:48:41 deraadt Exp $ */ /* * Copyright (c) 2005 Mark Kettenis @@ -283,7 +283,7 @@ adt_refresh(void *arg) case ADT_VCCP: case ADT_V5: case ADT_V12: - sc->sc_sensor[i].value = ratio * 1000 * data / 192; + sc->sc_sensor[i].value = ratio * 1000 * (u_int)data / 192; break; case ADT_LOCAL_TEMP: case ADT_REM1_TEMP: |