projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: Ship EasyMini firmware too
[fw/altos]
/
src
/
drivers
/
ao_gps_ublox.c
diff --git
a/src/drivers/ao_gps_ublox.c
b/src/drivers/ao_gps_ublox.c
index 1bc2a68fdb6a66616bdecc1d8a6bd041a8f55897..4fb907462c43691807e355a21549b63a6dd1658b 100644
(file)
--- a/
src/drivers/ao_gps_ublox.c
+++ b/
src/drivers/ao_gps_ublox.c
@@
-21,10
+21,11
@@
#include "ao_gps_ublox.h"
#include "ao_gps_ublox.h"
-#define AO_UBLOX_DEBUG
1
+#define AO_UBLOX_DEBUG
0
#include <stdarg.h>
#include <stdarg.h>
+__xdata uint8_t ao_gps_new;
__xdata uint8_t ao_gps_mutex;
__pdata uint16_t ao_gps_tick;
__xdata struct ao_telemetry_location ao_gps_data;
__xdata uint8_t ao_gps_mutex;
__pdata uint16_t ao_gps_tick;
__xdata struct ao_telemetry_location ao_gps_data;
@@
-702,9
+703,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();
@@
-760,8
+761,8
@@
ao_gps(void) __reentrant
}
ao_mutex_put(&ao_gps_mutex);
}
ao_mutex_put(&ao_gps_mutex);
- ao_
wakeup(&ao_gps_data)
;
- ao_wakeup(&ao_gps_
tracking_data
);
+ ao_
gps_new = AO_GPS_NEW_DATA | AO_GPS_NEW_TRACKING
;
+ ao_wakeup(&ao_gps_
new
);
break;
}
break;
break;
}
break;