summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver_ubx.c')
-rw-r--r--driver_ubx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/driver_ubx.c b/driver_ubx.c
index d7c9892c..5ef314d6 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -472,7 +472,7 @@ gps_mask_t ubx_parse(struct gps_device_t * session, unsigned char *buf,
break;
case UBX_CFG_PRT:
- session->driver.ubx.port_id = (int)buf[UBX_MESSAGE_DATA_OFFSET + 0];
+ session->driver.ubx.port_id = (unsigned char)buf[UBX_MESSAGE_DATA_OFFSET + 0];
gpsd_report(session->context->debug, LOG_INF, "UBX_CFG_PRT: port %d\n",
session->driver.ubx.port_id);
break;
@@ -928,8 +928,8 @@ static bool ubx_rate(struct gps_device_t *session, double cycletime)
/* This is everything we export */
/* *INDENT-OFF* */
-const struct gps_type_t ubx_binary = {
- .type_name = "u-blox binary", /* Full name of type */
+const struct gps_type_t driver_ubx = {
+ .type_name = "u-blox", /* Full name of type */
.packet_type = UBX_PACKET, /* associated lexer packet type */
.flags = DRIVER_STICKY, /* remember this */
.trigger = NULL,