X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altoslib%2FAltosEepromRecordTiny.java;h=4d44ddd7dac6b09837aabc9d95e64fdc95b1b36f;hb=a61217f0a6d0ef48b6471f632c4600255867e831;hp=705fbd9e63fcf1511ee5481d729c8b9c1085f9ff;hpb=f26cfe417c6977cf1e7e75a4f050e25f64d41859;p=fw%2Faltos diff --git a/altoslib/AltosEepromRecordTiny.java b/altoslib/AltosEepromRecordTiny.java index 705fbd9e..4d44ddd7 100644 --- a/altoslib/AltosEepromRecordTiny.java +++ b/altoslib/AltosEepromRecordTiny.java @@ -12,7 +12,7 @@ * General Public License for more details. */ -package org.altusmetrum.altoslib_11; +package org.altusmetrum.altoslib_12; public class AltosEepromRecordTiny extends AltosEepromRecord implements AltosDataProvider { public static final int record_length = 2; @@ -54,6 +54,7 @@ public class AltosEepromRecordTiny extends AltosEepromRecord implements AltosDat int value = data16(-header_length); cal_data.set_tick(tick()); + listener.set_time(cal_data.time()); switch (cmd()) { case AltosLib.AO_LOG_FLIGHT: listener.set_state(AltosLib.ao_flight_pad); @@ -76,11 +77,11 @@ public class AltosEepromRecordTiny extends AltosEepromRecord implements AltosDat return new AltosEepromRecordTiny(eeprom, s); } - public AltosEepromRecordTiny(AltosEepromNew eeprom, int start) { + public AltosEepromRecordTiny(AltosEeprom eeprom, int start) { super(eeprom, start, record_length); } - public AltosEepromRecordTiny(AltosEepromNew eeprom) { + public AltosEepromRecordTiny(AltosEeprom eeprom) { this(eeprom, 0); } }