summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-05-24 18:18:20 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-05-24 18:18:20 +0000
commitde9ae17986a329351b8dae828986f9ba980a64c7 (patch)
tree084944a428b117d5801bff8fb1120d8b86bf9b85 /serial.c
parent9dc5ce93f64c9245ee6de78c0d2c69755104cbe9 (diff)
downloadgpsd-de9ae17986a329351b8dae828986f9ba980a64c7.tar.gz
This may fix Gary Miller's bug.
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/serial.c b/serial.c
index 4b8772bb..2493a547 100644
--- a/serial.c
+++ b/serial.c
@@ -109,6 +109,8 @@ int gpsd_open(struct gps_device_t *session)
if ((*dp)->probe && (*dp)->probe(session)) {
gpsd_report(3, "probe found %s driver...\n", (*dp)->typename);
session->device_type = *dp;
+ if (session->device_type->initializer)
+ session->device_type->initializer(session);
return session->gpsdata.gps_fd;
}
}