From 378ebab2e70917b4182cbd840a3fa66e4e42fd92 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 22 Aug 2018 17:42:13 -0700 Subject: 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 --- altoslib/AltosFlash.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'altoslib/AltosFlash.java') diff --git a/altoslib/AltosFlash.java b/altoslib/AltosFlash.java index 520663b7..e6b05713 100644 --- a/altoslib/AltosFlash.java +++ b/altoslib/AltosFlash.java @@ -257,7 +257,7 @@ public class AltosFlash extends AltosProgrammer { int flash_addr = (int) 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; @@ -293,7 +293,7 @@ public class AltosFlash extends AltosProgrammer { action(image.data.length - remain, image.data.length); } if (!aborted) { - action("done", 100); + action(AltosFlashListener.flash_done, 100); if (debug != null) { debug.set_pc((int) image.address); debug.resume(); -- cgit v1.2.3