projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altoslib: MegaMetrum data telem packets have sensor data, not flight no
[fw/altos]
/
altosui
/
AltosUIPreferences.java
diff --git
a/altosui/AltosUIPreferences.java
b/altosui/AltosUIPreferences.java
index 4ef9384d0ceb862a6f3c5a1efa41def1396b043a..f6ee7e06910d11f6a90edffdace729bca9206979 100644
(file)
--- a/
altosui/AltosUIPreferences.java
+++ b/
altosui/AltosUIPreferences.java
@@
-45,8
+45,8
@@
public class AltosUIPreferences extends AltosPreferences {
/* Serial debug */
static boolean serial_debug;
/* Serial debug */
static boolean serial_debug;
- public static void init(
AltosUIPreferencesBackend in_backend
) {
- AltosPreferences.init(
in_backend
);
+ public static void init() {
+ AltosPreferences.init(
new AltosUIPreferencesBackend()
);
font_listeners = new LinkedList<AltosFontListener>();
font_listeners = new LinkedList<AltosFontListener>();
@@
-59,6
+59,8
@@
public class AltosUIPreferences extends AltosPreferences {
AltosLink.set_debug(serial_debug);
}
AltosLink.set_debug(serial_debug);
}
+ static { init(); }
+
static void set_component(Component in_component) {
component = in_component;
}
static void set_component(Component in_component) {
component = in_component;
}
@@
-161,7
+163,7
@@
public class AltosUIPreferences extends AltosPreferences {
}
}
public static void set_serial_debug(boolean new_serial_debug) {
}
}
public static void set_serial_debug(boolean new_serial_debug) {
- AltosLink.set_debug(serial_debug);
+ AltosLink.set_debug(
new_
serial_debug);
synchronized (backend) {
serial_debug = new_serial_debug;
backend.putBoolean(serialDebugPreference, serial_debug);
synchronized (backend) {
serial_debug = new_serial_debug;
backend.putBoolean(serialDebugPreference, serial_debug);