diff options
Diffstat (limited to 'gpxlogger.c')
-rw-r--r-- | gpxlogger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpxlogger.c b/gpxlogger.c index c3285a09..ffe8899d 100644 --- a/gpxlogger.c +++ b/gpxlogger.c @@ -300,6 +300,7 @@ static struct fixsource_t source; static int socket_mainloop(void) { fd_set fds; + unsigned int flags = WATCH_ENABLE; if (gps_open(source.server, source.port, &gpsdata) != 0) { (void)fprintf(stderr, @@ -308,7 +309,6 @@ static int socket_mainloop(void) exit(1); } - unsigned int flags = WATCH_ENABLE; if (source.device != NULL) flags |= WATCH_DEVICE; (void)gps_stream(&gpsdata, flags, source.device); |