projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix version in 1.9.10 release notes
[fw/altos]
/
altosuilib
/
AltosEepromDelete.java
diff --git
a/altosuilib/AltosEepromDelete.java
b/altosuilib/AltosEepromDelete.java
index ff1b15c85719c319a616ddd2fb763b5ab1ce96b3..214ae530fafc92bd3e1196676efad5c134494698 100644
(file)
--- a/
altosuilib/AltosEepromDelete.java
+++ b/
altosuilib/AltosEepromDelete.java
@@
-45,11
+45,13
@@
public class AltosEepromDelete implements Runnable {
serial_line.printf("d %d\n", log.flight);
for (;;) {
/* It can take a while to erase the flash... */
serial_line.printf("d %d\n", log.flight);
for (;;) {
/* It can take a while to erase the flash... */
- String line = serial_line.get_reply(20000);
+ String line = serial_line.get_reply(20000
0
);
if (line == null)
throw new TimeoutException();
if (line.equals("Erased"))
break;
if (line == null)
throw new TimeoutException();
if (line.equals("Erased"))
break;
+ if (line.equals("Failed to erase"))
+ throw new IOException(line);
if (line.startsWith("No such"))
throw new IOException(line);
}
if (line.startsWith("No such"))
throw new IOException(line);
}