diff --git a/app/src/processing/app/Serial.java b/app/src/processing/app/Serial.java index 5537f9275..08a436f5c 100644 --- a/app/src/processing/app/Serial.java +++ b/app/src/processing/app/Serial.java @@ -561,11 +561,10 @@ public class Serial implements SerialPortEventListener { try { //System.err.println("trying"); @SuppressWarnings("unchecked") - Enumeration portList = CommPortIdentifier.getPortIdentifiers(); + Enumeration portList = CommPortIdentifier.getPortIdentifiers(); //System.err.println("got port list"); while (portList.hasMoreElements()) { - CommPortIdentifier portId = - (CommPortIdentifier) portList.nextElement(); + CommPortIdentifier portId = portList.nextElement(); //System.out.println(portId); if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {