Commit 6dafab2d authored by Nicolas PALARD's avatar Nicolas PALARD

Fixed some typo (die error message override)

parent 0fed6c30
......@@ -99,7 +99,7 @@ public class CameraServerImpl extends NectarApplication implements CameraServer,
return connectRedis();
}
private Options options;
private static Options options;
private String buildDriverNames() {
Camera.Type[] values = Camera.Type.values();
......@@ -170,6 +170,15 @@ public class CameraServerImpl extends NectarApplication implements CameraServer,
}
}
public static void die(String why, boolean usage) {
if (usage) {
HelpFormatter formatter = new HelpFormatter();
formatter.printHelp("CameraServer", options);
}
System.out.println(why);
System.exit(-1);
}
private void sendParams(Camera cam) {
redis.set(output + ":width", Integer.toString(cam.width()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment