projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: Set idle mode frequency before starting link
[fw/altos]
/
altoslib
/
AltosIdleMonitor.java
diff --git
a/altoslib/AltosIdleMonitor.java
b/altoslib/AltosIdleMonitor.java
index 834d9aa54055a981ab209c008811f603266668ed..505fed561c3138dd695251b215716839a30e8a6d 100644
(file)
--- a/
altoslib/AltosIdleMonitor.java
+++ b/
altoslib/AltosIdleMonitor.java
@@
-16,7
+16,7
@@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-package org.altusmetrum.altoslib_1
2
;
+package org.altusmetrum.altoslib_1
3
;
import java.io.*;
import java.util.concurrent.*;
import java.io.*;
import java.util.concurrent.*;
@@
-30,7
+30,7
@@
public class AltosIdleMonitor extends Thread {
boolean remote;
boolean close_on_exit;
boolean remote;
boolean close_on_exit;
- double frequency;
+ double frequency
= AltosLib.MISSING
;
String callsign;
AltosState state;
String callsign;
AltosState state;
@@
-63,6
+63,8
@@
public class AltosIdleMonitor extends Thread {
if (state == null)
state = new AltosState(new AltosCalData(link.config_data()));
fetch.provide_data(state);
if (state == null)
state = new AltosState(new AltosCalData(link.config_data()));
fetch.provide_data(state);
+ if (frequency != AltosLib.MISSING)
+ state.set_frequency(frequency);
if (!link.has_error && !link.reply_abort)
worked = true;
} finally {
if (!link.has_error && !link.reply_abort)
worked = true;
} finally {