From 431c713389dc819d2433d893c898ff82c7941722 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 21 Sep 2015 06:32:52 +0100 Subject: altoslib: Clean up remaining direct AltosState.state users This value has been hidden to avoid having it written accidentally; there were a few more bits of code using it though. Signed-off-by: Keith Packard --- telegps/TeleGPSDisplayThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'telegps/TeleGPSDisplayThread.java') diff --git a/telegps/TeleGPSDisplayThread.java b/telegps/TeleGPSDisplayThread.java index fa394b17..11bca5d0 100644 --- a/telegps/TeleGPSDisplayThread.java +++ b/telegps/TeleGPSDisplayThread.java @@ -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) -- cgit v1.2.3