summaryrefslogtreecommitdiff
path: root/altosui/AltosEepromRecord.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-12 21:43:56 -0700
committerKeith Packard <keithp@keithp.com>2011-08-13 18:44:26 -0700
commitbf06af154e232d4caa1585a1d6d5279a075292e4 (patch)
treef3e6a4f162eef9284996b7637e360422a9b12ba5 /altosui/AltosEepromRecord.java
parentc2f2f519dbc8ce233ab36222088c1be6b1362f01 (diff)
altos/altosui: Report log format in the version command
This will make it easier to figure out what the contents of the flash should look like from altosui; the current 'guessing' mechanism will not scale to many more formats. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosEepromRecord.java')
-rw-r--r--altosui/AltosEepromRecord.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/altosui/AltosEepromRecord.java b/altosui/AltosEepromRecord.java
index 52acb435..c0f97035 100644
--- a/altosui/AltosEepromRecord.java
+++ b/altosui/AltosEepromRecord.java
@@ -143,6 +143,9 @@ public class AltosEepromRecord {
} else if (tokens[0].equals("serial-number")) {
cmd = Altos.AO_LOG_SERIAL_NUMBER;
a = Integer.parseInt(tokens[1]);
+ } else if (tokens[0].equals("log-format")) {
+ cmd = Altos.AO_LOG_LOG_FORMAT;
+ a = Integer.parseInt(tokens[1]);
} else if (tokens[0].equals("software-version")) {
cmd = Altos.AO_LOG_SOFTWARE_VERSION;
data = tokens[1];