X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altoslib%2FAltosPreferences.java;h=dba57dcb73d055f0509257e809346c721dacde92;hb=6dafd7bf947d892e430cd565eb92a3366abb3604;hp=0e91e4f475d5673bd4a21ef667d5147d7a84ddda;hpb=810f9a4f79b0480973d84595140d3f8948ce26d9;p=fw%2Faltos diff --git a/altoslib/AltosPreferences.java b/altoslib/AltosPreferences.java index 0e91e4f4..dba57dcb 100644 --- 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) { + + if (backend != null) + return; + backend = in_backend; /* Initialize logdir from preferences */ @@ -178,6 +182,8 @@ public class AltosPreferences { telemetry_rates = new Hashtable(); + logfiles = new Hashtable(); + voice = backend.getBoolean(voicePreference, true); callsign = backend.getString(callsignPreference,"N0CALL");