X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altosui%2FAltosEepromDownload.java;h=f034d73c81193dbe44756f052dcbbb7d8db16b4d;hp=c3bdd15968018d6ad052ac98c640034c5b73caf4;hb=a299a5a9a1b89c7ebc00ebd33a789793a6835181;hpb=82b3e3e4889aa5d4d157df1ad82e28068fda9e2a diff --git a/altosui/AltosEepromDownload.java b/altosui/AltosEepromDownload.java index c3bdd159..f034d73c 100644 --- a/altosui/AltosEepromDownload.java +++ b/altosui/AltosEepromDownload.java @@ -100,7 +100,10 @@ public class AltosEepromDownload implements Runnable { state.set_serial(flights.config_data.serial); for (int i = 0; i < AltosEepromChunk.chunk_size && !done; i += record_length) { - AltosEeprom r = eechunk.eeprom(i, log_format); + AltosEeprom r = eechunk.eeprom(i, log_format, state); + + if (r == null) + continue; record_length = r.record_length();