projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altoslib: Use common constants for flash action messages
[fw/altos]
/
altoslib
/
AltosSelfFlash.java
diff --git
a/altoslib/AltosSelfFlash.java
b/altoslib/AltosSelfFlash.java
index 75fc7946f682c885ec0affd044579ce6d4a8c452..20839ce41a3ef912a8fea022bdc041caadde40c6 100644
(file)
--- 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;
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;
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(image.data.length - remain, image.data.length);
}
if (!aborted) {
- action(
"done"
, 100);
+ action(
AltosFlashListener.flash_done
, 100);
}
close();
} catch (IOException ie) {
}
close();
} catch (IOException ie) {