Bump Java library versions
[fw/altos] / altosdroid / src / org / altusmetrum / AltosDroid / AltosVoice.java
index 8eb08b99dbb62dc08f1d8cebd025b5900bad67d7..325b89d2f553a0186a053b84cfc3c6108339fd12 100644 (file)
@@ -22,7 +22,7 @@ import android.speech.tts.TextToSpeech;
 import android.speech.tts.TextToSpeech.OnInitListener;
 import android.location.Location;
 
-import org.altusmetrum.altoslib_7.*;
+import org.altusmetrum.altoslib_8.*;
 
 public class AltosVoice {
 
@@ -183,6 +183,9 @@ public class AltosVoice {
                if (state == null)
                        return false;
 
+               if (last_tell_mode != TELL_MODE_FLIGHT)
+                       last_flight_tell = TELL_FLIGHT_NONE;
+
                if (state.state != last_state && AltosLib.ao_flight_boost <= state.state && state.state <= AltosLib.ao_flight_landed) {
                        speak(state.state_name());
                        if (descending(state.state) && !descending(last_state)) {
@@ -298,10 +301,6 @@ public class AltosVoice {
                else
                        tell_mode = TELL_MODE_RECOVER;
 
-               AltosDebug.debug("last_serial %d serial %d last_mode %d mode %d\n",
-                                last_tell_serial, tell_serial,
-                                last_tell_mode, tell_mode);
-
                if (tell_mode == TELL_MODE_PAD)
                        spoken = tell_pad(telem_state, state, from_receiver, receiver);
                else if (tell_mode == TELL_MODE_FLIGHT)