projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc: Convert AltOS doc to asciidoc
[fw/altos]
/
telegps
/
TeleGPSDisplayThread.java
diff --git
a/telegps/TeleGPSDisplayThread.java
b/telegps/TeleGPSDisplayThread.java
index 18b8d9fcd7fe29d0bd086756da27b8277286b07c..11bca5d09a53f404fa3cc1353cbbfe1f4b7cabe7 100644
(file)
--- a/
telegps/TeleGPSDisplayThread.java
+++ b/
telegps/TeleGPSDisplayThread.java
@@
-21,8
+21,8
@@
import java.awt.*;
import javax.swing.*;
import java.io.*;
import java.text.*;
import javax.swing.*;
import java.io.*;
import java.text.*;
-import org.altusmetrum.altoslib_
5
.*;
-import org.altusmetrum.altosuilib_
3
.*;
+import org.altusmetrum.altoslib_
8
.*;
+import org.altusmetrum.altosuilib_
8
.*;
public class TeleGPSDisplayThread extends Thread {
public class TeleGPSDisplayThread extends Thread {
@@
-129,7
+129,7
@@
public class TeleGPSDisplayThread extends Thread {
}
public synchronized void notice(boolean spoken) {
}
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)
report_time = now();
this.notify();
} else if (spoken)
@@
-168,8
+168,10
@@
public class TeleGPSDisplayThread extends Thread {
for (;;) {
try {
state = reader.read();
for (;;) {
try {
state = reader.read();
- if (state == null)
+ if (state == null) {
+ listener_state.running = false;
break;
break;
+ }
reader.update(state);
show_safely();
told = tell();
reader.update(state);
show_safely();
told = tell();