diff options
author | Keith Packard <keithp@keithp.com> | 2017-05-15 12:12:57 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-05-15 12:15:36 -0700 |
commit | 2fd949bb29d94b1a762ff707c98a8498ea508bb2 (patch) | |
tree | e9c09e9e614eada870c0fa272b99ef4f190a4ba6 | |
parent | 404ee357d59ef4732068ec0e56a9c93ac885ea0f (diff) |
altoslib: Set default log format to FULL until we learn different
Ancient log files don't even have a product name in them, so we'll
guess TeleMetrum v1.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | altoslib/AltosEepromNew.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/altoslib/AltosEepromNew.java b/altoslib/AltosEepromNew.java index b76e3e19..4e3ee416 100644 --- a/altoslib/AltosEepromNew.java +++ b/altoslib/AltosEepromNew.java @@ -57,7 +57,8 @@ public class AltosEepromNew { if (config_data == null) config_data = new AltosConfigData(); - if (config_data.log_format == AltosLib.MISSING) { + if (config_data.log_format == AltosLib.AO_LOG_FORMAT_UNKNOWN) { + config_data.log_format = AltosLib.AO_LOG_FORMAT_FULL; if (config_data.product != null) { if (config_data.product.startsWith("TeleMetrum")) config_data.log_format = AltosLib.AO_LOG_FORMAT_FULL; |