summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a299a5a)
Had separate 'tick_valid' value, which wasn't useful as the supertype
didn't look there.
Signed-off-by: Keith Packard <keithp@keithp.com>
public class AltosEepromTM extends AltosEeprom {
public int a;
public int b;
public class AltosEepromTM extends AltosEeprom {
public int a;
public int b;
- public boolean tick_valid;
public static final int record_length = 8;
public static final int record_length = 8;
public AltosEepromTM (AltosEepromChunk chunk, int start) throws ParseException {
cmd = chunk.data(start);
public AltosEepromTM (AltosEepromChunk chunk, int start) throws ParseException {
cmd = chunk.data(start);
- tick_valid = !chunk.erased(start, record_length);
- if (tick_valid) {
+ valid = !chunk.erased(start, record_length);
+ if (valid) {
if (AltosConvert.checksum(chunk.data, start, record_length) != 0)
throw new ParseException(String.format("invalid checksum at 0x%x",
chunk.address + start), 0);
if (AltosConvert.checksum(chunk.data, start, record_length) != 0)
throw new ParseException(String.format("invalid checksum at 0x%x",
chunk.address + start), 0);
}
public AltosEepromTM (String line) {
}
public AltosEepromTM (String line) {
} else {
cmd = tokens[0].codePointAt(0);
tick = Integer.parseInt(tokens[1],16);
} else {
cmd = tokens[0].codePointAt(0);
tick = Integer.parseInt(tokens[1],16);
a = Integer.parseInt(tokens[2],16);
b = Integer.parseInt(tokens[3],16);
}
a = Integer.parseInt(tokens[2],16);
b = Integer.parseInt(tokens[3],16);
}
}
public AltosEepromTM(int in_cmd, int in_tick, int in_a, int in_b) {
}
public AltosEepromTM(int in_cmd, int in_tick, int in_a, int in_b) {
cmd = in_cmd;
tick = in_tick;
a = in_a;
cmd = in_cmd;
tick = in_tick;
a = in_a;