Rev 1566 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1566 | Rev 1570 | ||
---|---|---|---|
Line 243... | Line 243... | ||
243 | public static void main(String[] args) throws IOException { |
243 | public static void main(String[] args) throws IOException { |
244 | if (!"r".equals(args[0]) && !"w".equals(args[0])) help(); |
244 | if (!"r".equals(args[0]) && !"w".equals(args[0])) help(); |
245 | if ("w".equals(args[0]) && (args.length!=3 && args.length!=4)) help(); |
245 | if ("w".equals(args[0]) && (args.length!=3 && args.length!=4)) help(); |
246 | if ("r".equals(args[0]) && (args.length!=3 && args.length!=4)) help(); |
246 | if ("r".equals(args[0]) && (args.length!=3 && args.length!=4)) help(); |
Line 247... | Line 247... | ||
247 | 247 | ||
Line 248... | Line 248... | ||
248 | String portIdentifier = "COM10"; |
248 | String portIdentifier = null; |
249 | 249 | ||
250 | if ("r".equals(args[0])) { |
250 | if ("r".equals(args[0])) { |
251 | readConfiguration(portIdentifier, Integer.parseInt(args[1])); |
251 | readConfiguration(portIdentifier, Integer.parseInt(args[1])); |