altosui: Set callsign when fetching eeprom data over the air
authorKeith Packard <keithp@keithp.com>
Mon, 23 Aug 2010 06:06:15 +0000 (23:06 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 23 Aug 2010 06:06:15 +0000 (23:06 -0700)
The updated firmware places the callsign in each packet to comply with
regulations, this ensures that TeleDongle has the current callsign
configured.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/altosui/AltosEepromDownload.java

index c2a8d25e8b229d7c6d20d4aaac466001d0eaa7fb..02a71118c331e72c0af2fb4d6d76d6b043defe49 100644 (file)
@@ -225,6 +225,7 @@ public class AltosEepromDownload implements Runnable {
                if (remote) {
                        serial_line.printf("m 0\n");
                        serial_line.set_channel(AltosPreferences.channel());
+                       serial_line.set_callsign(AltosPreferences.callsign());
                        serial_line.printf("p\n");
                }
 
@@ -259,7 +260,6 @@ public class AltosEepromDownload implements Runnable {
                if (device != null) {
                        try {
                                serial_line.open(device);
-                               String name = device.getName();
                                if (!device.matchProduct(AltosDevice.TeleMetrum))
                                        remote = true;
                                eeprom_thread = new Thread(this);