summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-07 11:44:55 -0700
committerKeith Packard <keithp@keithp.com>2014-06-07 12:34:14 -0700
commit537db628c0223f0c1f797705a353857c696f8051 (patch)
treef2338effa1e24c47711d704cc956f87bbc33a0fa
parentd562a5d3a6dfea334a66ee74893b400bdca09315 (diff)
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 <keithp@keithp.com>
-rw-r--r--altoslib/AltosConfigData.java8
1 files changed, 4 insertions, 4 deletions
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<String> {
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;
}
}