diff options
| author | Keith Packard <keithp@keithp.com> | 2013-05-26 18:50:10 -0600 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-05-26 18:50:10 -0600 | 
| commit | 17e0ccccc8619f96d2cf56bd98d63a7e59f5301d (patch) | |
| tree | faccce76e8658424b4cfb716661150c42cffd472 | |
| parent | 013cba5ed1fde72240a68ec648bd14977f5e48a4 (diff) | |
altosui: Stop downloading mega eeprom on empty block
Signed-off-by: Keith Packard <keithp@keithp.com>
| -rw-r--r-- | altosui/AltosEepromDownload.java | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/altosui/AltosEepromDownload.java b/altosui/AltosEepromDownload.java index 53d5433f..dc61724d 100644 --- a/altosui/AltosEepromDownload.java +++ b/altosui/AltosEepromDownload.java @@ -289,7 +289,8 @@ public class AltosEepromDownload implements Runnable {  				if (r.cmd == Altos.AO_LOG_STATE && r.data16(0) == Altos.ao_flight_landed)  					done = true; -				any_valid = true; +				if (r.cmd != AltosLib.AO_LOG_INVALID) +					any_valid = true;  				LogMega(r);  			} catch (ParseException pe) {  				if (parse_exception == null) | 
