diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-11-01 19:30:49 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-11-01 19:30:49 +0000 |
commit | 76c63b297197f776168c5f42aa10beafdeec5f08 (patch) | |
tree | 7947ab981b0ebf5d24be96dc79e4c743b3dc712a /libgpsd_core.c | |
parent | ed313c928320ef123b22520a105d8710b1f4af90 (diff) | |
download | gpsd-76c63b297197f776168c5f42aa10beafdeec5f08.tar.gz |
Another small refactoring step.
Now we have saved_baud completely confined to serial.c
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index 120808c3..7cd3262b 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -77,8 +77,8 @@ void gpsd_init(struct gps_device_t *session, struct gps_context_t *context, char session->gpsdata.gdop = NAN; session->gpsdata.epe = NAN; - /* mark GPS fd closed */ - session->gpsdata.gps_fd = -1; + /* tty-level initialization */ + gpsd_tty_init(session); /* necessary in case we start reading in the middle of a GPGSV sequence */ gpsd_zero_satellites(&session->gpsdata); |