altoslib: Set version and log space from AltosIdleFetch
authorKeith Packard <keithp@keithp.com>
Sun, 15 May 2016 20:55:12 +0000 (13:55 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 15 May 2016 20:55:12 +0000 (13:55 -0700)
Just more data for monitor idle mode

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosIdleFetch.java

index 5677916c9d294ca94b5cc847b248c004c11fd9d3..5102c16b3f6f92f0cb50478d26500944899a0dff 100644 (file)
@@ -134,9 +134,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 +145,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);