altoslib: Expose public function to set state.product
authorKeith Packard <keithp@keithp.com>
Wed, 17 Jun 2015 06:41:51 +0000 (23:41 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 17 Jun 2015 07:13:03 +0000 (00:13 -0700)
Just adds a setter function for this value.

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

index ad032a1685af8548af8a3b763f6c8d447328b131..a120e0c7e1965b1caa14a8b289997d3aa69ddb48 100644 (file)
@@ -1040,6 +1040,10 @@ public class AltosState implements Cloneable, Serializable {
                return AltosLib.state_name(state);
        }
 
+       public void set_product(String product) {
+               this.product = product;
+       }
+
        public void set_state(int state) {
                if (state != AltosLib.ao_flight_invalid) {
                        this.state = state;