diff options
| author | Keith Packard <keithp@keithp.com> | 2011-01-12 12:40:45 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2011-01-12 12:40:45 -0800 | 
| commit | 8801b8c1947bd39f7c985b91a2ba8dbc81bcc91a (patch) | |
| tree | 083998aea43274f7c65460abc2348537d1bca88d /altosui/AltosEepromMonitor.java | |
| parent | 440d52e34364fdeeddc76a2d744cc6d1c934364f (diff) | |
altosui: Add eeprom 'manage' ui to download and delete multiple flights
This shows the list of available flights and provides options to
download and/or delete each one.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosEepromMonitor.java')
| -rw-r--r-- | altosui/AltosEepromMonitor.java | 18 | 
1 files changed, 18 insertions, 0 deletions
diff --git a/altosui/AltosEepromMonitor.java b/altosui/AltosEepromMonitor.java index 13a49a95..b9d913fa 100644 --- a/altosui/AltosEepromMonitor.java +++ b/altosui/AltosEepromMonitor.java @@ -239,4 +239,22 @@ public class AltosEepromMonitor extends JDialog {  			};  		SwingUtilities.invokeLater(r);  	} + +	private void reset_internal() { +		set_value_internal("startup",min_state,0); +		set_flight_internal(0); +		set_file_internal(""); +	} + +	public void reset() { +		Runnable r = new Runnable() { +				public void run() { +					try { +						reset_internal(); +					} catch (Exception ex) { +					} +				} +			}; +		SwingUtilities.invokeLater(r); +	}  }  | 
