diff options
author | Keith Packard <keithp@keithp.com> | 2018-08-22 17:42:13 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-08-22 17:42:13 -0700 |
commit | 378ebab2e70917b4182cbd840a3fa66e4e42fd92 (patch) | |
tree | 9d338cee8d8e4f9dea18b3dff25f7739ee1e19bf /altoslib/AltosSelfFlash.java | |
parent | 22005da598921ef6fe1a7f1bb5e56e41f44fe12f (diff) |
altoslib: Use common constants for flash action messages
Place messages in AltosFlashListener instead of using the same strings
in three different places.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosSelfFlash.java')
-rw-r--r-- | altoslib/AltosSelfFlash.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/altoslib/AltosSelfFlash.java b/altoslib/AltosSelfFlash.java index 75fc7946..20839ce4 100644 --- a/altoslib/AltosSelfFlash.java +++ b/altoslib/AltosSelfFlash.java @@ -101,7 +101,7 @@ public class AltosSelfFlash extends AltosProgrammer { long flash_addr = image.address; int image_start = 0; - action("start", 0); + action(AltosFlashListener.flash_start, 0); action(0, image.data.length); while (remain > 0 && !aborted) { int this_time = remain; @@ -129,7 +129,7 @@ public class AltosSelfFlash extends AltosProgrammer { action(image.data.length - remain, image.data.length); } if (!aborted) { - action("done", 100); + action(AltosFlashListener.flash_done, 100); } close(); } catch (IOException ie) { |