for (block = log.start_block; !done && block < log.end_block; block++) {
monitor.set_value(Altos.state_to_string[state], state, block - state_block);
- AltosEepromChunk eechunk = new AltosEepromChunk(serial_line, block);
+ AltosEepromChunk eechunk = new AltosEepromChunk(serial_line, block, block == log.start_block);
/*
* Guess what kind of data is there if the device
"Connection Failed",
JOptionPane.ERROR_MESSAGE);
} finally {
- if (remote)
- serial_line.stop_remote();
+ if (remote) {
+ try {
+ serial_line.stop_remote();
+ } catch (InterruptedException ie) {
+ }
+ }
serial_line.flush_output();
}
monitor.done();