Rev 1564 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1564 | Rev 1566 | ||
---|---|---|---|
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 = null; |
248 | String portIdentifier = "COM10"; |
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])); |