summaryrefslogtreecommitdiff
path: root/driver_skytraq.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-02-08 19:48:30 -0800
committerGary E. Miller <gem@rellim.com>2018-02-08 19:48:30 -0800
commitfa47f7390f183de954e9db0163e0a494fa99258e (patch)
tree8ae9e309e571e12bff84cff0c6d767da58676cd0 /driver_skytraq.c
parente35d22c954eccbca23b3ec3326bb991d8d7d1088 (diff)
downloadgpsd-fa47f7390f183de954e9db0163e0a494fa99258e.tar.gz
Skytraq: trim subtype so it fits in the buffer.
Diffstat (limited to 'driver_skytraq.c')
-rw-r--r--driver_skytraq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_skytraq.c b/driver_skytraq.c
index 3b7e8136..3c8f3ad8 100644
--- a/driver_skytraq.c
+++ b/driver_skytraq.c
@@ -76,7 +76,7 @@ static bool sky_write(struct gps_device_t *session, unsigned char *msg)
#endif /* __UNUSED */
/*
- * decode MID 0x*), Software Version
+ * decode MID 0x80, Software Version
*
* 10 bytes
*/
@@ -107,7 +107,7 @@ static gps_mask_t sky_msg_80(struct gps_device_t *session,
rev_dd = getub(buf, 13);
(void)snprintf(session->subtype, sizeof(session->subtype) - 1,
- "Skytraq: kver=%u.%u,%u, over=%u.%u,%u, rev=%u.%u.%u",
+ "kver=%3u.%2u,%2u, over=%3u.%2u,%2u, rev=%02u.%02u.%02u",
kver_x, kver_y, kver_z,
over_x, over_y, over_z,
rev_yy, rev_mm, rev_dd);