micropeak: Make reported 'max height' value show filtered max height
[fw/altos] / altoslib / AltosSensorTM.java
index 49f3986b861d2a30ae9e221c794c02bd8dd191c0..bdedaa9c88b1218cb64e8a1a91dfbbd0c1163145 100644 (file)
@@ -16,7 +16,7 @@
  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  */
 
-package org.altusmetrum.altoslib_11;
+package org.altusmetrum.altoslib_12;
 
 import java.util.concurrent.TimeoutException;
 
@@ -29,9 +29,10 @@ public class AltosSensorTM {
        public int      drogue;
        public int      main;
 
-       static public void provide_data(AltosDataListener listener, AltosLink link, AltosCalData cal_data) throws InterruptedException {
+       static public void provide_data(AltosDataListener listener, AltosLink link) throws InterruptedException {
                try {
                        AltosSensorTM   sensor_tm = new AltosSensorTM(link);
+                       AltosCalData    cal_data = listener.cal_data();
 
                        if (sensor_tm == null)
                                return;