summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-08-29 21:40:21 -0700
committerKeith Packard <keithp@keithp.com>2010-08-29 21:40:21 -0700
commite60c59123232915e808cee23ef89eb1a38ced34b (patch)
tree6449339d2881379ab9fe887d6cf69dba49048f6e
parentae02b1590439d5c8dfb472cf1f83a14fdcfbaf11 (diff)
altosui: discard invalid lines while reading Eeprom flight data
This shouldn't happen, but it's easy enough to get back in sync by just skipping lines with weird contents. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--ao-tools/altosui/AltosEepromDownload.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/ao-tools/altosui/AltosEepromDownload.java b/ao-tools/altosui/AltosEepromDownload.java
index 5e43345b..6dbbd3eb 100644
--- a/ao-tools/altosui/AltosEepromDownload.java
+++ b/ao-tools/altosui/AltosEepromDownload.java
@@ -142,6 +142,7 @@ public class AltosEepromDownload implements Runnable {
if (values == null) {
System.out.printf("invalid line: %s\n", line);
+ continue;
} else if (values[0] != addr) {
System.out.printf("data address out of sync at 0x%x\n",
block * 256 + values[0]);