altoslib: Make cal_data private in AltosDataListener
[fw/altos] / altoslib / AltosSensorTM.java
index 76bf8a77b3feb08ad66c7b0aab90eef36036fc51..bdedaa9c88b1218cb64e8a1a91dfbbd0c1163145 100644 (file)
@@ -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;