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