diff options
author | Keith Packard <keithp@keithp.com> | 2015-02-06 04:45:17 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2015-02-06 04:45:17 -0800 |
commit | 66e7a8081c07d0d96a31ae34963d430f06dccdfb (patch) | |
tree | db49f2712df6883cb4049f84f0576ad28156287e /altoslib/AltosIdleFetch.java | |
parent | 14d524782af4f06d7f3722dcc852772ec493c2cc (diff) |
altoslib: Store MS5607 data in AltosConfigData for use by AltosMs5607
When doing 'Monitor Idle', we fetch new config data each iteration and
pass that to each of the readers, including ms5607. Instead of
re-fetching the config data there, just store the ms5607 parameters
when we fetch it the first time and copy it over.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosIdleFetch.java')
-rw-r--r-- | altoslib/AltosIdleFetch.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/altoslib/AltosIdleFetch.java b/altoslib/AltosIdleFetch.java index 50745d97..981035d4 100644 --- a/altoslib/AltosIdleFetch.java +++ b/altoslib/AltosIdleFetch.java @@ -131,6 +131,7 @@ public class AltosIdleFetch implements AltosStateUpdate { public void update_state(AltosState state) throws InterruptedException { try { + /* Fetch config data from remote */ AltosConfigData config_data = new AltosConfigData(link); state.set_state(AltosLib.ao_flight_startup); state.set_serial(config_data.serial); |