diff options
| author | Keith Packard <keithp@keithp.com> | 2017-06-11 22:49:46 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-06-11 22:54:22 -0700 | 
| commit | 5c4e473ef5d13da9c2f356702cb8767b55aa2137 (patch) | |
| tree | f16c240a3ba02d150221b9e956e17ba391d477cc /altoslib/AltosSensorMetrum.java | |
| parent | 27131ec7abda875595c61be0b151b73eb28afab9 (diff) | |
altoslib: Hook up idle monitoring data again
The API for idle monitoring changed, but these modules hadn't been
fixed.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosSensorMetrum.java')
| -rw-r--r-- | altoslib/AltosSensorMetrum.java | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/altoslib/AltosSensorMetrum.java b/altoslib/AltosSensorMetrum.java index cb163911..1b025d1c 100644 --- a/altoslib/AltosSensorMetrum.java +++ b/altoslib/AltosSensorMetrum.java @@ -53,12 +53,12 @@ class AltosSensorMetrum {  		}  	} -	static public void update_state(AltosState state, AltosLink link, AltosConfigData config_data) throws InterruptedException { +	static public void provide_data(AltosDataListener listener, AltosLink link, AltosCalData cal_data) throws InterruptedException {  		try {  			AltosSensorMetrum	sensor_metrum = new AltosSensorMetrum(link); -			state.set_battery_voltage(AltosConvert.mega_battery_voltage(sensor_metrum.v_batt)); -			state.set_apogee_voltage(AltosConvert.mega_pyro_voltage(sensor_metrum.sense_a)); -			state.set_main_voltage(AltosConvert.mega_pyro_voltage(sensor_metrum.sense_m)); +			listener.set_battery_voltage(AltosConvert.mega_battery_voltage(sensor_metrum.v_batt)); +			listener.set_apogee_voltage(AltosConvert.mega_pyro_voltage(sensor_metrum.sense_a)); +			listener.set_main_voltage(AltosConvert.mega_pyro_voltage(sensor_metrum.sense_m));  		} catch (TimeoutException te) {  		}  	} | 
