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/AltosEepromLog.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/AltosEepromLog.java')
| -rw-r--r-- | altoslib/AltosEepromLog.java | 18 | 
1 files changed, 15 insertions, 3 deletions
| diff --git a/altoslib/AltosEepromLog.java b/altoslib/AltosEepromLog.java index 8d1f3fc4..ba722b89 100644 --- a/altoslib/AltosEepromLog.java +++ b/altoslib/AltosEepromLog.java @@ -18,6 +18,7 @@  package org.altusmetrum.altoslib_12; +import java.io.*;  import java.text.*;  import java.util.concurrent.*; @@ -32,7 +33,15 @@ public class AltosEepromLog {  	public int		start_block;  	public int		end_block; -	public boolean		selected; +	public boolean		download_selected; +	public boolean		delete_selected; +	public boolean		graph_selected; + +	public File		file; + +	public void set_file(File file) { +		this.file = file; +	}  	public AltosEepromLog(AltosConfigData config_data,  			      AltosLink link, @@ -50,8 +59,11 @@ public class AltosEepromLog {  		serial = config_data.serial;  		/* -		 * Select all flights for download +		 * Select all flights for download and graph, but not +		 * for delete  		 */ -		selected = true; +		download_selected = true; +		delete_selected = false; +		graph_selected = true;  	}  } | 
