diff options
author | Yojiro Uo <yuo@cvs.openbsd.org> | 2009-12-19 05:49:59 +0000 |
---|---|---|
committer | Yojiro Uo <yuo@cvs.openbsd.org> | 2009-12-19 05:49:59 +0000 |
commit | 602c8161e6eb9300c2e97381277eb8f23993f108 (patch) | |
tree | 9c526dc6ff3629a01dd2caecfcead312dc62c561 /sys/dev | |
parent | 20223e980d9e90e1b19206fac6fd99b3de16c00b (diff) |
fix tsleep parameter
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/utrh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/utrh.c b/sys/dev/usb/utrh.c index 234f589ea6c..7e6ca9e3bdf 100644 --- a/sys/dev/usb/utrh.c +++ b/sys/dev/usb/utrh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utrh.c,v 1.1 2009/12/18 04:16:14 yuo Exp $ */ +/* $OpenBSD: utrh.c,v 1.2 2009/12/19 05:49:58 yuo Exp $ */ /* * Copyright (c) 2009 Yojiro UO <yuo@nui.org> @@ -250,8 +250,8 @@ utrh_refresh(void *arg) cmdbuf, sc->sc_olen)) return; - /* wait till sensor data are updated, 1000ms will be enough */ - tsleep(&sc->sc_sensortask, 0, "utrh", 1000); + /* wait till sensor data are updated, 1s will be enough */ + tsleep(&sc->sc_sensortask, 0, "utrh", (1*hz)); temp_tick = (sc->sc_ibuf[2] * 256 + sc->sc_ibuf[3]) & 0x3fff; humidity_tick = (sc->sc_ibuf[0] * 256 + sc->sc_ibuf[1]) & 0x0fff; |