()
| 472 | } |
| 473 | |
| 474 | public void open() throws Exception { |
| 475 | super.open(); |
| 476 | |
| 477 | if (serial != null) return; |
| 478 | |
| 479 | serial = new Serial(getBoardPort().getAddress(), serialRate) { |
| 480 | @Override |
| 481 | protected void message(char buff[], int n) { |
| 482 | addToUpdateBuffer(buff, n); |
| 483 | } |
| 484 | }; |
| 485 | } |
| 486 | |
| 487 | public void close() throws Exception { |
| 488 | if (serial != null) { |
no test coverage detected