summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-05-26 13:17:27 -0700
committerGary E. Miller <gem@rellim.com>2016-05-26 13:17:27 -0700
commit70c068d2760f8243c15e51a1f56f602005b7e1e2 (patch)
tree0ebaf00440408811b605934b4b205d39c32f7b4c /serial.c
parentb3d513f898a760de624b34a2655ce251708f3d67 (diff)
downloadgpsd-70c068d2760f8243c15e51a1f56f602005b7e1e2.tar.gz
revert error cchecking of tcsetattr() in gpsd_set_speed().
As the comment now says: strangely this fails on non-serial ports, but if we do not try, we get other failures. so ignore for now, as we always have, until it can be nailed down.
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/serial.c b/serial.c
index cff48b4c..b29178ec 100644
--- a/serial.c
+++ b/serial.c
@@ -318,10 +318,16 @@ void gpsd_set_speed(struct gps_device_t *session,
break;
}
if (tcsetattr(session->gpsdata.gps_fd, TCSANOW, &session->ttyset) != 0) {
- gpsd_log(&session->context->errout, LOG_ERROR,
- "SER: error setting port attributes: %s, sourcetype: %d\n",
- strerror(errno), session->sourcetype);
- return;
+ /* strangely this fails on non-serial ports, but if
+ * we do not try, we get other failures.
+ * so ignore for now, as we always have, until it can
+ * be nailed down.
+ *
+ * gpsd_log(&session->context->errout, LOG_ERROR,
+ * "SER: error setting port attributes: %s, sourcetype: %d\n",
+ * strerror(errno), session->sourcetype);
+ * return;
+ */
}
/*