diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-05-12 17:56:58 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-12 17:56:58 -0400 |
commit | 519514829142af194a73db22e63b48db98bc54d9 (patch) | |
tree | 7e25f1af1ae911db743714742c2aa5f894bc87c8 /driver_geostar.c | |
parent | 86255ffe0dd8d7ce089b1f54a49441164969b12f (diff) | |
download | gpsd-519514829142af194a73db22e63b48db98bc54d9.tar.gz |
According to the Geostar reference, the code to set NMEA mode was wrong.
Coverity didn't like it. I'm not sure why. But in theory fixing this
should get us to zero reported Coverity defects.
Diffstat (limited to 'driver_geostar.c')
-rw-r--r-- | driver_geostar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_geostar.c b/driver_geostar.c index d0ac4b57..c15a5c06 100644 --- a/driver_geostar.c +++ b/driver_geostar.c @@ -545,7 +545,7 @@ static void geostar_mode(struct gps_device_t *session, int mode) /*@-shiftimplementation@*/ if (mode == MODE_NMEA) { /* Switch to NMEA mode */ - putbe32(buf, 0, (session->driver.geostar.physical_port == 0) ? 1 : 0); + putbe32(buf, 0, 1); (void)geostar_write(session, 0x46, buf, 1); } else if (mode == MODE_BINARY) { /* Switch to binary mode */ |