summaryrefslogtreecommitdiff
path: root/drivers.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-08-01 22:58:37 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-08-01 22:58:37 +0000
commit9ec3074fc1e3e0699581b87c2ed0683ed680fd59 (patch)
treea195da6992b6078045c256ae56e065b8688bff9f /drivers.c
parentd6c274ece19a733d4f4cfa52c6e04585bbd0088f (diff)
downloadgpsd-9ec3074fc1e3e0699581b87c2ed0683ed680fd59.tar.gz
Merge Petr Slanky's gpsd_write() patch.
Diffstat (limited to 'drivers.c')
-rw-r--r--drivers.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers.c b/drivers.c
index eaaaa8dd..f764fd63 100644
--- a/drivers.c
+++ b/drivers.c
@@ -100,8 +100,7 @@ static void nmea_initializer(struct gps_device_t *session)
#endif /* ITRAX_ENABLE */
#ifdef EVERMORE_ENABLE
/* probe for EverMore by trying to read the LogConfig */
- (void)write(session->gpsdata.gps_fd, "\x10\x02\x06\x8d\x00\x01\x00\x8e\x10\x03", 10);
- (void)tcdrain(session->gpsdata.gps_fd);
+ (void)gpsd_write(session, "\x10\x02\x06\x8d\x00\x01\x00\x8e\x10\x03", 10);
#endif /* EVERMORE_ENABLE */
}