projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.desktop: Use %F instead of %f in .desktop files
[fw/altos]
/
altoslib
/
AltosPreferences.java
diff --git
a/altoslib/AltosPreferences.java
b/altoslib/AltosPreferences.java
index 0e91e4f475d5673bd4a21ef667d5147d7a84ddda..dba57dcb73d055f0509257e809346c721dacde92 100644
(file)
--- a/
altoslib/AltosPreferences.java
+++ b/
altoslib/AltosPreferences.java
@@
-157,6
+157,10
@@
public class AltosPreferences {
public static int launcher_channel;
public static void init(AltosPreferencesBackend in_backend) {
public static int launcher_channel;
public static void init(AltosPreferencesBackend in_backend) {
+
+ if (backend != null)
+ return;
+
backend = in_backend;
/* Initialize logdir from preferences */
backend = in_backend;
/* Initialize logdir from preferences */
@@
-178,6
+182,8
@@
public class AltosPreferences {
telemetry_rates = new Hashtable<Integer,Integer>();
telemetry_rates = new Hashtable<Integer,Integer>();
+ logfiles = new Hashtable<Integer,File>();
+
voice = backend.getBoolean(voicePreference, true);
callsign = backend.getString(callsignPreference,"N0CALL");
voice = backend.getBoolean(voicePreference, true);
callsign = backend.getString(callsignPreference,"N0CALL");