summaryrefslogtreecommitdiff
path: root/test_geoid.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-03 01:09:57 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-04 16:23:27 -0400
commit1824f1f7e85b21325076aa825212158bb8686500 (patch)
tree9e452c2952b372a27b7e155973025fc617a630de /test_geoid.c
parent2f60fb2e6e25437d39468798392f83d7e02677db (diff)
downloadgpsd-1824f1f7e85b21325076aa825212158bb8686500.tar.gz
We can now monitor low-level string sends through gpsmon.
Now we'll know exactly what's being sent on a UBX mode change.
Diffstat (limited to 'test_geoid.c')
-rw-r--r--test_geoid.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test_geoid.c b/test_geoid.c
index 19e926ba..2392b1a8 100644
--- a/test_geoid.c
+++ b/test_geoid.c
@@ -10,6 +10,14 @@
#include "gpsd.h"
+ssize_t gpsd_write(struct gps_device_t *session,
+ const char *buf,
+ const size_t len)
+/* pass low-level data to devices straight through */
+{
+ return gpsd_serial_write(session, buf, len);
+}
+
void gpsd_report(const int debuglevel, const int errlevel,
const char *fmt, ...)
{