X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altosuilib%2FAltosEepromDelete.java;h=39585dad3793aef24bdc01c7fb56e09f8fc5c06f;hb=master;hp=ff1b15c85719c319a616ddd2fb763b5ab1ce96b3;hpb=528fdc4e03466430c8d81fc78c90d3c9e8465ca7;p=fw%2Faltos diff --git a/altosuilib/AltosEepromDelete.java b/altosuilib/AltosEepromDelete.java index ff1b15c8..214ae530 100644 --- 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... */ - String line = serial_line.get_reply(20000); + String line = serial_line.get_reply(200000); 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); }