diff options
| author | Keith Packard <keithp@keithp.com> | 2015-02-07 14:43:11 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2015-02-07 14:43:11 -0800 | 
| commit | e70f3dca01b15b75b0b8795eb71bd12817af4800 (patch) | |
| tree | 7958f178d7456fc4d66f196ac1f31f7c0f4d106e /altoslib | |
| parent | 08f07d0af123e1c307bc4c0c973da07fae8246b1 (diff) | |
altoslib: Mark listener as 'not running' on EOF.
This adds a 'running' member to the AltosListenerState class, and when
the replay reader reaches EOF, marks the listener as no longer
running.
AltosUI and TeleGPS now display 'done' in the 'Age' field when this
occurs, to let the user know that the replay is over.
Also make sure that the display timers are stopped when this happens,
or when the window is closed.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib')
| -rw-r--r-- | altoslib/AltosListenerState.java | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/altoslib/AltosListenerState.java b/altoslib/AltosListenerState.java index ed1f0f19..bba21830 100644 --- a/altoslib/AltosListenerState.java +++ b/altoslib/AltosListenerState.java @@ -22,9 +22,11 @@ import java.io.*;  public class AltosListenerState implements Serializable {  	public int	crc_errors;  	public double	battery; +	public boolean	running;  	public AltosListenerState() {  		crc_errors = 0;  		battery = AltosLib.MISSING; +		running = true;  	}  } | 
