summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-13 21:05:46 -0700
committerKeith Packard <keithp@keithp.com>2011-08-13 21:05:46 -0700
commit3ba7b6196f68078f4ed4538c4e7fe30699dfe908 (patch)
treeed44cb4ed4741f0071a127b26819de471e30f43a
parent03e201e1acc8742399054e4ad36b533120ea1612 (diff)
altosui: Devices with log-format can also delete flights
Any device with either flight-log-max or log-format can delete flights. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--altosui/AltosEepromDelete.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/altosui/AltosEepromDelete.java b/altosui/AltosEepromDelete.java
index 94951ced..cd9abfab 100644
--- a/altosui/AltosEepromDelete.java
+++ b/altosui/AltosEepromDelete.java
@@ -42,7 +42,7 @@ public class AltosEepromDelete implements Runnable {
private void DeleteLog (AltosEepromLog log)
throws IOException, InterruptedException, TimeoutException {
- if (flights.config_data.flight_log_max != 0) {
+ if (flights.config_data.flight_log_max != 0 || flights.config_data.log_format != 0) {
/* Devices with newer firmware can erase the
* flash blocks containing each flight