summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/serial.c b/serial.c
index af6b5ec7..e511b324 100644
--- a/serial.c
+++ b/serial.c
@@ -609,6 +609,16 @@ ssize_t gpsd_serial_write(struct gps_device_t * session,
return status;
}
+void gpsd_optimize_io(struct gps_device_t *session,
+ const int minlength, const bool textual)
+/* optimize I/O mode depending on the minimum packet size */
+{
+ gpsd_report(&session->context->errout, LOG_SHOUT,
+ "tty params optimized for min length %d of %s packets\n",
+ minlength, textual ? "textual" : "binary");
+}
+
+
/*
* This constant controls how long the packet sniffer will spend looking
* for a packet leader before it gives up. It *must* be larger than