From a2662a1b2531c40aa807d7908b1ee2145630b49a Mon Sep 17 00:00:00 2001 From: andre Date: Fri, 21 Mar 2014 21:54:15 +0000 Subject: Fix missing brackets: longitude/latitude status set to critical every time nmea_timeout() is triggered introduced in rev 1.37. ok sthen@ --- sys/kern/tty_nmea.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/kern') 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 @@ -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; + } } -- cgit v1.2.3