Closedown
This commit is contained in:
@@ -102,6 +102,7 @@ public class ScreenPanel extends Panel {
|
||||
Overlay[] fitOv;
|
||||
Overlay errorOverlay;
|
||||
boolean requestCameraListUpdate;
|
||||
Integer localServerPort;
|
||||
|
||||
Double getCamtoolDouble(String name) {
|
||||
return (Double) Convert.toDouble(((Camtool) camera).getValue(name));
|
||||
@@ -176,7 +177,16 @@ public class ScreenPanel extends Panel {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
if (App.hasArgument("priv_srv")) {
|
||||
localServerPort = 1000;
|
||||
}
|
||||
|
||||
if (App.hasArgument("srv_port")) {
|
||||
localServerPort = Integer.valueOf(App.getArgumentValue("srv_port"));
|
||||
}
|
||||
|
||||
|
||||
if (App.hasArgument("calc")) {
|
||||
useCamtoolStats = false;
|
||||
}
|
||||
@@ -355,7 +365,7 @@ public class ScreenPanel extends Panel {
|
||||
|
||||
DefaultComboBoxModel getCameraListFromCamtool() throws IOException, InterruptedException {
|
||||
DefaultComboBoxModel model = new DefaultComboBoxModel();
|
||||
Camtool camtool = new Camtool(CAMERA_DEVICE_NAME);
|
||||
Camtool camtool = (localServerPort != null) ? new Camtool(CAMERA_DEVICE_NAME, "localhost:"+localServerPort) : new Camtool(CAMERA_DEVICE_NAME);
|
||||
try {
|
||||
camtool.initialize();
|
||||
List<String> cameras = camtool.getCameras();
|
||||
|
||||
Reference in New Issue
Block a user