summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-11-04 23:27:14 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-11-04 23:27:14 +0000
commit9dd3e1d8bce79fe8f34479f7afd14304f8c11150 (patch)
tree598c368dfe459f855ef8cee94ac6c9fb8b612838 /driver_ubx.c
parent6a129c1c630e7671df4e9a7dbebddc84bda6158e (diff)
downloadgpsd-9dd3e1d8bce79fe8f34479f7afd14304f8c11150.tar.gz
Address Berlios tracker bug #16408 ubx_driver: wrong packet length on write.
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 62777a0a..37357ab9 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -566,7 +566,7 @@ bool ubx_write(struct gps_device_t *session,
session->msgbuf[6 + data_len] = CK_A;
session->msgbuf[7 + data_len] = CK_B;
- session->msgbuflen = data_len + 7;
+ session->msgbuflen = data_len + 8;
/*@ +type @*/
gpsd_report(LOG_IO,