* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
public boolean parse_line(String line) throws NumberFormatException {
if (line.startsWith("ADXL375 value")) {
public boolean parse_line(String line) throws NumberFormatException {
if (line.startsWith("ADXL375 value")) {
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]);
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]);