diff options
| author | Keith Packard <keithp@keithp.com> | 2017-11-11 20:49:20 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-11-11 20:49:20 -0800 | 
| commit | 9a7b4f02ad32ca43a45ed9fe446b8db96e60b5e5 (patch) | |
| tree | af009a016229cb6e377bc5d4cecd92874c89a839 /altoslib/AltosEepromList.java | |
| parent | 10834eb60f7a44fee159d9e9ad5ffb2e013fe9cf (diff) | |
altoslib: Improve EEprom download
* Catch and report CRC errors
* Deal with corrupted flight records
* Add ability to immediately graph new data
* Check before overwriting existing files
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosEepromList.java')
| -rw-r--r-- | altoslib/AltosEepromList.java | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/altoslib/AltosEepromList.java b/altoslib/AltosEepromList.java index 55d47e20..c55bcaaa 100644 --- a/altoslib/AltosEepromList.java +++ b/altoslib/AltosEepromList.java @@ -87,7 +87,7 @@ public class AltosEepromList extends ArrayList<AltosEepromLog> {  							start = AltosParse.parse_hex(tokens[3]);  						if (tokens[4].equals("end"))  							end = AltosParse.parse_hex(tokens[5]); -						if (flight > 0 && start >= 0 && end > 0) +						if (flight != 0 && start >= 0 && end > 0)  							flights.add(new AltosEepromFlight(flight, start, end));  					} catch (ParseException pe) { System.out.printf("Parse error %s\n", pe.toString()); }  				} @@ -115,4 +115,4 @@ public class AltosEepromList extends ArrayList<AltosEepromLog> {  			link.flush_output();  		}  	} -}
\ No newline at end of file +} | 
