X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altoslib%2FAltosCompanion.java;h=5ce333f8a9782564e3c804a56addf31a6cf7292d;hp=dc33daccf907bd46d2507ae7eccde1dd722af472;hb=ee79a205e118ea8730a02cc327d8fb79cc5f74ff;hpb=21d176f161b90f18f236ef887cef9676d712eee3 diff --git a/altoslib/AltosCompanion.java b/altoslib/AltosCompanion.java index dc33dacc..5ce333f8 100644 --- a/altoslib/AltosCompanion.java +++ b/altoslib/AltosCompanion.java @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -15,11 +16,11 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -package org.altusmetrum.altoslib_10; +package org.altusmetrum.altoslib_12; import java.io.*; -public class AltosCompanion implements Serializable { +public class AltosCompanion { public final static int board_id_telescience = 0x0a; public final static int MAX_CHANNELS = 12; @@ -37,4 +38,9 @@ public class AltosCompanion implements Serializable { channels = MAX_CHANNELS; companion_data = new int[channels]; } + + public AltosCompanion() { + channels = 0; + companion_data = new int[0]; + } }