private void DeleteLog (AltosEepromLog log)
throws IOException, InterruptedException, TimeoutException {
private void DeleteLog (AltosEepromLog log)
throws IOException, InterruptedException, TimeoutException {
/* Devices with newer firmware can erase the
* flash blocks containing each flight
*/
serial_line.flush_input();
serial_line.printf("d %d\n", log.flight);
/* Devices with newer firmware can erase the
* flash blocks containing each flight
*/
serial_line.flush_input();
serial_line.printf("d %d\n", log.flight);
success = true;
} catch (IOException ee) {
show_error (ee.getLocalizedMessage(),
success = true;
} catch (IOException ee) {
show_error (ee.getLocalizedMessage(),
show_error (String.format("Connection to \"%s\" failed",
serial_line.device.toShortString()),
"Connection Failed");
show_error (String.format("Connection to \"%s\" failed",
serial_line.device.toShortString()),
"Connection Failed");