summaryrefslogtreecommitdiff
path: root/drivers.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers.c')
-rw-r--r--drivers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers.c b/drivers.c
index 201af3c0..126e26c7 100644
--- a/drivers.c
+++ b/drivers.c
@@ -12,7 +12,7 @@
#endif /* S_SPLINT_S */
#include "gpsd.h"
-#include "bits.h" /* for getbeuw(), to extract big-endian words */
+#include "bits.h" /* for getbeu16(), to extract big-endian words */
extern const struct gps_type_t zodiac_binary;
extern const struct gps_type_t ubx_binary;
@@ -846,8 +846,8 @@ static const struct gps_type_t rtcm104v2 = {
static gps_mask_t rtcm104v3_analyze(struct gps_device_t *session)
{
- uint16_t length = getbeuw(session->packet.inbuffer, 1);
- uint16_t type = getbeuw(session->packet.inbuffer, 3) >> 4;
+ uint16_t length = getbeu16(session->packet.inbuffer, 1);
+ uint16_t type = getbeu16(session->packet.inbuffer, 3) >> 4;
/* *INDENT-OFF* */
gpsd_report(LOG_RAW, "RTCM 3.x packet type %d length %d words: %s\n",