()
| 138 | } |
| 139 | |
| 140 | @Override |
| 141 | public void close() throws Exception { |
| 142 | super.close(); |
| 143 | if (serial != null) { |
| 144 | int[] location = getPlacement(); |
| 145 | String locationStr = PApplet.join(PApplet.str(location), ","); |
| 146 | PreferencesData.set("last.serial.location", locationStr); |
| 147 | serial.dispose(); |
| 148 | serial = null; |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | } |