projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Merge GPS logging into a single function
[fw/altos]
/
src
/
core
/
ao_flight.c
diff --git
a/src/core/ao_flight.c
b/src/core/ao_flight.c
index 88dc816d25578858aa2c3e8c672cb414b0eb418e..2495a44bafe85553a3facfcb5eac0839c416b73c 100644
(file)
--- a/
src/core/ao_flight.c
+++ b/
src/core/ao_flight.c
@@
-194,8
+194,8
@@
ao_flight(void)
#if HAS_GPS
/* Record current GPS position by waking up GPS log tasks */
#if HAS_GPS
/* Record current GPS position by waking up GPS log tasks */
- 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
);
#endif
ao_wakeup(DATA_TO_XDATA(&ao_flight_state));
#endif
ao_wakeup(DATA_TO_XDATA(&ao_flight_state));