X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altosui%2FAltosLaunch.java;h=f1893cf505a3cf5a92625e6e3137e9a63efaf28a;hp=67bbddc28404a405c6d64d3f8b69c9ec51d566ca;hb=9a7b4f02ad32ca43a45ed9fe446b8db96e60b5e5;hpb=cb23b992be8ba40c97d8988c134a814a13ccd58c diff --git a/altosui/AltosLaunch.java b/altosui/AltosLaunch.java index 67bbddc2..f1893cf5 100644 --- a/altosui/AltosLaunch.java +++ b/altosui/AltosLaunch.java @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,7 +21,7 @@ package altosui; import java.io.*; import java.util.concurrent.*; import java.awt.*; -import org.altusmetrum.altosuilib_7.*; +import org.altusmetrum.altosuilib_12.*; public class AltosLaunch { AltosDevice device; @@ -91,7 +92,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 +195,4 @@ public class AltosLaunch { device = in_device; serial = new AltosSerial(device); } -} \ No newline at end of file +}