projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
db4cd8b
)
altos: Use #define values for ublox packet types
author
Keith Packard
<keithp@keithp.com>
Tue, 15 Oct 2013 04:49:39 +0000
(21:49 -0700)
committer
Keith 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
patch
|
blob
|
history
diff --git
a/src/drivers/ao_gps_ublox.c
b/src/drivers/ao_gps_ublox.c
index 1bc2a68fdb6a66616bdecc1d8a6bd041a8f55897..e91683485a6c5a36166e04d715e816feea66f9ed 100644
(file)
--- 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) {
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();