altoslib: Store saved state in version-independent format
[fw/altos] / altosui / AltosLaunch.java
index 46a29d45dce3b5a34ca90ac99e000310e4fc2e2e..fb2cd883fa97f37d9476e77c76c3fa6cbb0dd693 100644 (file)
@@ -91,7 +91,7 @@ public class AltosLaunch {
                                throw new TimeoutException();
                        if (get_string(line, "Rssi: ", status_name)) {
                                try {
-                                       rssi = Altos.fromdec(status_name.get());
+                                       rssi = (int) Altos.fromdec(status_name.get());
                                } catch (NumberFormatException ne) {
                                }
                                break;
@@ -194,4 +194,4 @@ public class AltosLaunch {
                device = in_device;
                serial = new AltosSerial(device);
        }
-}
\ No newline at end of file
+}