Switch from GPLv2 to GPLv2+
[fw/altos] / altoslib / AltosIdleFetch.java
index 5677916c9d294ca94b5cc847b248c004c11fd9d3..8871e9cc1089d6c3aab624052962efa302a3f852 100644 (file)
@@ -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
@@ -134,9 +135,6 @@ public class AltosIdleFetch implements AltosStateUpdate {
 
        AltosLink               link;
 
-       double                  frequency;
-       String                  callsign;
-
        public void update_state(AltosState state) throws InterruptedException, AltosUnknownProduct {
                try {
                        boolean matched = false;
@@ -148,6 +146,8 @@ public class AltosIdleFetch implements AltosStateUpdate {
                        state.set_ground_accel(config_data.accel_cal_plus);
                        state.set_accel_g(config_data.accel_cal_plus, config_data.accel_cal_minus);
                        state.set_product(config_data.product);
+                       state.set_firmware_version(config_data.version);
+                       state.set_log_space(config_data.log_space);
                        for (AltosIdler idler : idlers) {
                                if (idler.matches(config_data)) {
                                        idler.update_state(state, link, config_data);