diff options
| author | Keith Packard <keithp@keithp.com> | 2013-10-14 22:41:43 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-10-14 22:41:43 -0700 |
| commit | 039446f54ef6968a3f0b37ce32ca6bdcdbe62546 (patch) | |
| tree | d66195ea4d80894af1b4ab771a6878abb770848a /src/product | |
| parent | 5c4b3658a96f1a64ccebf7bddda06b15b4ac4a6f (diff) | |
altos: Merge GPS logging into a single function
Create a new global, ao_gps_new, which indicates new GPS position and
satellite data.
Use ao_gps_new as the new sleep/wakeup address.
Merge the separate gps position/satellite logging tasks into a single
function which waits for new data and writes out the changed values.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/product')
| -rw-r--r-- | src/product/ao_terraui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/product/ao_terraui.c b/src/product/ao_terraui.c index 1866eb0c..8fd97033 100644 --- a/src/product/ao_terraui.c +++ b/src/product/ao_terraui.c @@ -629,7 +629,7 @@ ao_terragps(void) for (;;) { while (ao_gps_tick == gps_tick) - ao_sleep(&ao_gps_data); + ao_sleep(&ao_gps_new); gps_tick = ao_gps_tick; ao_gps_progress = (ao_gps_progress + 1) & 3; } |
