|
@@ -17,7 +17,6 @@ public class App {
|
|
|
private static String serialDevice = null;
|
|
|
private static PALSpecs pspecs = null;
|
|
|
private static int outMask = -1;
|
|
|
- private static boolean padTable = true;
|
|
|
private static String outFile = null;
|
|
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
@@ -31,7 +30,7 @@ public class App {
|
|
|
}
|
|
|
|
|
|
logger.error("Wrong number of arguments passed.\n"
|
|
|
- + "dupal_analyzer <serial_port> <pal_type> <output_file> [pad_table: Y|N] [hex_output_mask]\n"
|
|
|
+ + "dupal_analyzer <serial_port> <pal_type> <output_file> [hex_output_mask]\n"
|
|
|
+ "Where <pal_type> can be:\n" + supportedPALs.toString() + "\n");
|
|
|
|
|
|
return;
|
|
@@ -55,7 +54,7 @@ public class App {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- dpan.startAnalisys(padTable);
|
|
|
+ dpan.startAnalisys();
|
|
|
}
|
|
|
|
|
|
private static void parseArgs(String[] args) {
|
|
@@ -73,11 +72,7 @@ public class App {
|
|
|
outFile = args[2];
|
|
|
|
|
|
if(args.length >= 4) {
|
|
|
- padTable = args[3].equalsIgnoreCase("Y");
|
|
|
- }
|
|
|
-
|
|
|
- if(args.length >= 5) {
|
|
|
- outMask = Integer.parseInt(args[4], 16);
|
|
|
+ outMask = Integer.parseInt(args[3], 16);
|
|
|
}
|
|
|
}
|
|
|
}
|