X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altosui%2FAltosLaunch.java;h=d4e73b3e994e78a2caf254b5da79255a78f2f434;hp=46a29d45dce3b5a34ca90ac99e000310e4fc2e2e;hb=15e3f2dae15e41a8501e3e1d221536751af15f94;hpb=97adfff4cfb67c17a96f3ff46606b4e439422b01 diff --git a/altosui/AltosLaunch.java b/altosui/AltosLaunch.java index 46a29d45..d4e73b3e 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 @@ -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 +}