projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: Show dialog box if sudo fails on Mac OS X
[fw/altos]
/
altosui
/
AltosLaunch.java
diff --git
a/altosui/AltosLaunch.java
b/altosui/AltosLaunch.java
index 6dc1ca023772e318713ef68c434ddc65b28ed2b8..fe33d7153849fd98c15388e322bf992b686eb62a 100644
(file)
--- 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
*
* 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
*
* 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 java.io.*;
import java.util.concurrent.*;
import java.awt.*;
-import org.altusmetrum.altosuilib_
8
.*;
+import org.altusmetrum.altosuilib_
14
.*;
public class AltosLaunch {
AltosDevice device;
public class AltosLaunch {
AltosDevice device;
@@
-91,7
+92,7
@@
public class AltosLaunch {
throw new TimeoutException();
if (get_string(line, "Rssi: ", status_name)) {
try {
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;
} catch (NumberFormatException ne) {
}
break;
@@
-194,4
+195,4
@@
public class AltosLaunch {
device = in_device;
serial = new AltosSerial(device);
}
device = in_device;
serial = new AltosSerial(device);
}
-}
\ No newline at end of file
+}