From d6e64790287d684cb9b70c67fa270825932cc020 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 25 Jun 2014 13:50:54 -0700 Subject: [PATCH 1/1] 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 --- altoslib/AltosLink.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } } -- 2.30.2