altoslib: Clean up remaining direct AltosState.state users
[fw/altos] / telegps / TeleGPSDisplayThread.java
index fa394b17fe3c0d2b1e830e861cbeda9e1baf4b39..11bca5d09a53f404fa3cc1353cbbfe1f4b7cabe7 100644 (file)
@@ -129,7 +129,7 @@ public class TeleGPSDisplayThread extends Thread {
                }
 
                public synchronized void notice(boolean spoken) {
-                       if (old_state != null && old_state.state != state.state) {
+                       if (old_state != null && old_state.state() != state.state()) {
                                report_time = now();
                                this.notify();
                        } else if (spoken)