public boolean parse_line(String line) throws NumberFormatException {
if (line.startsWith("ADXL375 value")) {
- System.out.printf("adxl parse line %s\n", line);
String[] items = line.split("\\s+");
if (axis == AltosLib.MISSING)
throw new NumberFormatException("No ADXL375 axis specified");
if (items.length >= 3) {
accel = Integer.parseInt(items[2 + axis]);
- System.out.printf("accel %d\n", accel);
return true;
}
}