summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosFlash.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-08-24 03:59:09 -0700
committerKeith Packard <keithp@keithp.com>2010-08-24 03:59:09 -0700
commitd93787284c8e514a929edb9f944c98ae0206a33f (patch)
treed87d4df53ad2f3515b1d4830c98cc2011b7e23d9 /ao-tools/altosui/AltosFlash.java
parent7d44cbd621d2b113ac2b802ef17e3d8a660ce7f2 (diff)
altosui: Delay mapping Flash UI until flashing actually starts
The flash operation may be abandoned before it even starts; this makes sure the UI doesn't flash up on the screen. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/altosui/AltosFlash.java')
-rw-r--r--ao-tools/altosui/AltosFlash.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/ao-tools/altosui/AltosFlash.java b/ao-tools/altosui/AltosFlash.java
index 0f92d6e7..7aeab89a 100644
--- a/ao-tools/altosui/AltosFlash.java
+++ b/ao-tools/altosui/AltosFlash.java
@@ -247,6 +247,7 @@ public class AltosFlash {
int flash_addr = image.address;
int image_start = 0;
+ action("start", 0);
action(0, image.data.length);
while (remain > 0 && !aborted) {
int this_time = remain;