altoslib: Hide 'state' member and use accessor function
authorKeith Packard <keithp@keithp.com>
Sun, 13 Sep 2015 02:20:49 +0000 (19:20 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 13 Oct 2015 20:54:28 +0000 (13:54 -0700)
commit0afa07d3c1dcb5e301fcb8b4edfecdd961662478
treebd0742a81d3ef60933358fa5151e5d49910cacbe
parent7064bc685aebeef07711e525dea4d5fbe33d235b
altoslib: Hide 'state' member and use accessor function

Someone was smashing the state to 'landed' when no packets had been
received for a while. Found that by making it impossible for anyone
outside of AltosState to change the value.

Signed-off-by: Keith Packard <keithp@keithp.com>
16 files changed:
altoslib/AltosCSV.java
altoslib/AltosEepromDownload.java
altoslib/AltosEepromFile.java
altoslib/AltosFlightStats.java
altoslib/AltosKML.java
altoslib/AltosMap.java
altoslib/AltosReplayReader.java
altoslib/AltosState.java
altoslib/AltosTelemetry.java
altoslib/AltosTelemetryFile.java
altosui/AltosFlightStatus.java
altosui/AltosFlightUI.java
altosui/AltosPad.java
altosui/AltosUI.java
altosuilib/AltosDisplayThread.java
altosuilib/AltosGraphDataPoint.java