altos: Use #define values for ublox packet types
authorKeith Packard <keithp@keithp.com>
Tue, 15 Oct 2013 04:49:39 +0000 (21:49 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 15 Oct 2013 04:49:39 +0000 (21:49 -0700)
One case was using hex values instead of the #define equivalents.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_gps_ublox.c

index 1bc2a68fdb6a66616bdecc1d8a6bd041a8f55897..e91683485a6c5a36166e04d715e816feea66f9ed 100644 (file)
@@ -702,9 +702,9 @@ ao_gps(void) __reentrant
                        continue;
 
                switch (class) {
                        continue;
 
                switch (class) {
-               case 0x01:
+               case UBLOX_NAV:
                        switch (id) {
                        switch (id) {
-                       case 0x21:
+                       case UBLOX_NAV_TIMEUTC:
                                ao_mutex_get(&ao_gps_mutex);
                                ao_gps_tick = ao_time();
 
                                ao_mutex_get(&ao_gps_mutex);
                                ao_gps_tick = ao_time();