From: Keith Packard Date: Wed, 25 Jun 2014 20:50:54 +0000 (-0700) Subject: altoslib: Disable telemetry while getting config data X-Git-Tag: 1.4.9.1~21 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=d6e64790287d684cb9b70c67fa270825932cc020;hp=98c3c3f7edd58358939f7dacf5b8f4c336712f5b;ds=sidebyside 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 --- 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; } }