From 5c4b3658a96f1a64ccebf7bddda06b15b4ac4a6f Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 14 Oct 2013 21:49:39 -0700 Subject: [PATCH] altos: Use #define values for ublox packet types One case was using hex values instead of the #define equivalents. Signed-off-by: Keith Packard --- src/drivers/ao_gps_ublox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/ao_gps_ublox.c b/src/drivers/ao_gps_ublox.c index 1bc2a68f..e9168348 100644 --- a/src/drivers/ao_gps_ublox.c +++ b/src/drivers/ao_gps_ublox.c @@ -702,9 +702,9 @@ ao_gps(void) __reentrant continue; switch (class) { - case 0x01: + case UBLOX_NAV: switch (id) { - case 0x21: + case UBLOX_NAV_TIMEUTC: ao_mutex_get(&ao_gps_mutex); ao_gps_tick = ao_time(); -- 2.30.2