diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2006-12-10 15:42:13 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2006-12-10 15:42:13 +0000 |
commit | a7d048f5c6e0711bb71ad987f943b014b3c10681 (patch) | |
tree | cedbc579b51865934a7f4a7068e9ec3eb3084034 /sys/dev | |
parent | 6ef6f5c54fef271dc064213996f9921fe70eab03 (diff) |
Re-arm signal loss detection only after we received a bit, not in itself. This
prevents the signal loss function from being called repeatedly when we have
no signal.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/udcf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/udcf.c b/sys/dev/usb/udcf.c index b5c60ddac6e..e281aa8bf66 100644 --- a/sys/dev/usb/udcf.c +++ b/sys/dev/usb/udcf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udcf.c,v 1.24 2006/12/10 14:39:05 mbalmer Exp $ */ +/* $OpenBSD: udcf.c,v 1.25 2006/12/10 15:42:12 mbalmer Exp $ */ /* * Copyright (c) 2006 Marc Balmer <mbalmer@openbsd.org> @@ -417,7 +417,7 @@ udcf_probe(void *xsc) sc->sc_level = 0; if (sc->sc_minute == 1) { if (sc->sc_sync) { - DPRINTF(("synchronized, collecting bits\n")); + DPRINTF(("start collecting bits\n")); sc->sc_sync = 0; if (sc->sc_sensor.status == SENSOR_S_UNKNOWN) sc->sc_clocktype = -1; @@ -637,7 +637,6 @@ udcf_sl_probe(void *xsc) DPRINTF(("no signal\n")); sc->sc_sync = 1; timeout_add(&sc->sc_to, t_wait); - timeout_add(&sc->sc_sl_to, t_wait + t_sl); } /* invalidate timedelta */ |