diff options
author | andre <andre@cvs.openbsd.org> | 2014-03-21 21:54:15 +0000 |
---|---|---|
committer | andre <andre@cvs.openbsd.org> | 2014-03-21 21:54:15 +0000 |
commit | a2662a1b2531c40aa807d7908b1ee2145630b49a (patch) | |
tree | 08b74165b62fadc35a92aa19fd64a34f26ce0334 /sys/kern | |
parent | b9b1403024784c9007d1a3185059800044271d5d (diff) |
Fix missing brackets: longitude/latitude status set to critical every time
nmea_timeout() is triggered introduced in rev 1.37.
ok sthen@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/tty_nmea.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/tty_nmea.c b/sys/kern/tty_nmea.c index 395d85a5ad2..4b0c84926f8 100644 --- a/sys/kern/tty_nmea.c +++ b/sys/kern/tty_nmea.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty_nmea.c,v 1.40 2014/03/21 21:46:47 andre Exp $ */ +/* $OpenBSD: tty_nmea.c,v 1.41 2014/03/21 21:54:14 andre Exp $ */ /* * Copyright (c) 2006, 2007, 2008 Marc Balmer <mbalmer@openbsd.org> @@ -554,8 +554,9 @@ nmea_timeout(void *xnp) * sentences are received. */ timeout_add_sec(&np->nmea_tout, TRUSTTIME); - } else + } else { np->time.status = SENSOR_S_CRIT; np->latitude.status = SENSOR_S_CRIT; np->longitude.status = SENSOR_S_CRIT; + } } |