projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/telefireone-v2.0: Remove build of ao_product.h from Makefile
[fw/altos]
/
altoslib
/
AltosLaunchSites.java
diff --git
a/altoslib/AltosLaunchSites.java
b/altoslib/AltosLaunchSites.java
index b24cccbeb128b0d94d7988c874438d1d0839385b..2c04c90eeeb50a28d905a1b1233dbcc61e40a21a 100644
(file)
--- a/
altoslib/AltosLaunchSites.java
+++ b/
altoslib/AltosLaunchSites.java
@@
-30,6
+30,8
@@
public class AltosLaunchSites extends Thread {
LinkedList<AltosLaunchSite> sites;
AltosLaunchSiteListener listener;
LinkedList<AltosLaunchSite> sites;
AltosLaunchSiteListener listener;
+ public static String launch_sites_url;
+
void notify_complete() {
listener.notify_launch_sites(sites);
}
void notify_complete() {
listener.notify_launch_sites(sites);
}
@@
-50,9
+52,13
@@
public class AltosLaunchSites extends Thread {
try {
String path;
try {
String path;
- path = System.getenv(AltosLib.launch_sites_env);
- if (path == null)
- path = AltosLib.launch_sites_url;
+ if (launch_sites_url != null)
+ path = launch_sites_url;
+ else {
+ path = System.getenv(AltosLib.launch_sites_env);
+ if (path == null)
+ path = AltosLib.launch_sites_url;
+ }
url = new URL(path);
URLConnection uc = url.openConnection();
url = new URL(path);
URLConnection uc = url.openConnection();