X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altosui%2FAltosLaunch.java;h=fb2cd883fa97f37d9476e77c76c3fa6cbb0dd693;hb=cd97128e30c47edfcc71f7d872cbdad14867934c;hp=de19221e9f0c117a29c7899ca07af2c0eba8eade;hpb=19243ecc9b5bbdcc069ae24acf1ca807322c84d8;p=fw%2Faltos diff --git a/altosui/AltosLaunch.java b/altosui/AltosLaunch.java index de19221e..fb2cd883 100644 --- a/altosui/AltosLaunch.java +++ b/altosui/AltosLaunch.java @@ -20,6 +20,7 @@ package altosui; import java.io.*; import java.util.concurrent.*; import java.awt.*; +import org.altusmetrum.altosuilib_11.*; public class AltosLaunch { AltosDevice device; @@ -90,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; @@ -193,4 +194,4 @@ public class AltosLaunch { device = in_device; serial = new AltosSerial(device); } -} \ No newline at end of file +}