summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-12 06:47:56 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-12 06:47:56 -0400
commit6d9656417a5ae7db6ce4d27486f297758dc407ca (patch)
treef4de06b7b1e258ba5eaec76240873a89713cbeca /driver_ubx.c
parentc38d07039ed0bf379d027dc9cdbe886dce64ddd7 (diff)
downloadgpsd-6d9656417a5ae7db6ce4d27486f297758dc407ca.tar.gz
splint cleanup.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r--driver_ubx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_ubx.c b/driver_ubx.c
index 1347cc3a..51ff2328 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -774,7 +774,7 @@ static bool ubx_speed(struct gps_device_t *session,
speed,
parity,
stopbits,
- session->packet.type == UBX_PACKET);
+ (session->packet.type == UBX_PACKET) ? MODE_BINARY : MODE_NMEA);
return true;
}