mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 14:19:19 +01:00
X serial port
X better message for PortInUseException (full explanation) X better message for when serial port code not available/not installed
This commit is contained in:
@@ -741,6 +741,14 @@ public class KjcEngine extends PdeEngine {
|
||||
// has to be before init
|
||||
applet.serialProperties(PdeBase.properties);
|
||||
applet.init();
|
||||
if (applet.exception != null) {
|
||||
if (applet.exception instanceof javax.comm.PortInUseException) {
|
||||
throw new PdeException("Another program is already " +
|
||||
"using the serial port.");
|
||||
} else {
|
||||
throw new PdeException(applet.exception.getMessage());
|
||||
}
|
||||
}
|
||||
applet.start();
|
||||
|
||||
if (editor.presenting) {
|
||||
|
||||
Reference in New Issue
Block a user