altosui: fix 'magic' string to signal end of config data
authorKeith Packard <keithp@keithp.com>
Tue, 23 Aug 2011 06:32:36 +0000 (23:32 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 23 Aug 2011 06:32:36 +0000 (23:32 -0700)
Was using "done", which happens to be displayed by the 'l'
command. Switch to 'all finished' which doesn't appear in the config
data output. Yes, this method is a kludge.

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

index f17436083937665984e83f9afd21fa1af9a5b28d..7cd8cb8b91f51e788a380f5126145a978864621f 100644 (file)
@@ -174,7 +174,7 @@ public class AltosConfig implements ActionListener {
                        abort();
                        return;
                }
-               if (line.equals("done")) {
+               if (line.equals("all finished")) {
                        if (serial_line != null)
                                update_ui();
                        return;
@@ -244,7 +244,7 @@ public class AltosConfig implements ActionListener {
                                } catch (InterruptedException ie) {
                                }
                        }
-                       callback("done");
+                       callback("all finished");
                }
 
                void save_data() {