diff options
| author | Keith Packard <keithp@keithp.com> | 2014-06-25 13:50:54 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2014-07-05 00:38:09 -0700 | 
| commit | d6e64790287d684cb9b70c67fa270825932cc020 (patch) | |
| tree | aeadbf170c08ca98b40392c90c71b0124b1b8569 | |
| parent | 98c3c3f7edd58358939f7dacf5b8f4c336712f5b (diff) | |
altoslib: Disable telemetry while getting config data
We're seeing some log files created without a suitable -via- number
included. My hypothesis is that incoming telemetry is getting
interleaved with the configuration data containing the serial
number. This change simply disables telemetry while retrieving the
configuration data to try and keep that from happening.
Signed-off-by: Keith Packard <keithp@keithp.com>
| -rw-r--r-- | altoslib/AltosLink.java | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/altoslib/AltosLink.java b/altoslib/AltosLink.java index 08bca5fc..ef40c8cb 100644 --- a/altoslib/AltosLink.java +++ b/altoslib/AltosLink.java @@ -385,8 +385,12 @@ public abstract class AltosLink implements Runnable {  	public AltosConfigData config_data() throws InterruptedException, TimeoutException {  		synchronized(config_data_lock) { -			if (config_data == null) +			if (config_data == null) { +				printf("m 0\n");  				config_data = new AltosConfigData(this); +				if (monitor_mode) +					set_monitor(true); +			}  			return config_data;  		}  	} | 
