From: Keith Packard Date: Sat, 7 Jun 2014 18:44:55 +0000 (-0700) Subject: altoslib: All products with logging have the 'l' command X-Git-Tag: 1.3.2.3~7 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;ds=sidebyside;h=537db628c0223f0c1f797705a353857c696f8051;p=fw%2Faltos altoslib: All products with logging have the 'l' command Instead of listing products with the 'l' command, just exclude products that don't have logging from using the 'l' command to collect the number of stored flights. Signed-off-by: Keith Packard --- diff --git a/altoslib/AltosConfigData.java b/altoslib/AltosConfigData.java index 2f36e215..9292a5a2 100644 --- a/altoslib/AltosConfigData.java +++ b/altoslib/AltosConfigData.java @@ -572,12 +572,12 @@ public class AltosConfigData implements Iterable { link.printf("c s\nf\nv\n"); read_link(link, "software-version"); switch (log_format) { - case AltosLib.AO_LOG_FORMAT_FULL: - case AltosLib.AO_LOG_FORMAT_TINY: - case AltosLib.AO_LOG_FORMAT_TELEMEGA: + case AltosLib.AO_LOG_FORMAT_UNKNOWN: + case AltosLib.AO_LOG_FORMAT_NONE: + break; + default: link.printf("l\n"); read_link(link, "done"); - default: break; } }