Skip to content

Commit 821c665

Browse files
committed
Change message if requiring infos from Network port
1 parent e23bbf7 commit 821c665

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/src/processing/app/Editor.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2766,6 +2766,7 @@ private void handleBoardInfo() {
27662766
String vid = "";
27672767
String pid = "";
27682768
String iserial = "";
2769+
String protocol = "";
27692770
boolean found = false;
27702771

27712772
for (BoardPort port : ports) {
@@ -2774,6 +2775,7 @@ private void handleBoardInfo() {
27742775
vid = port.getVID();
27752776
pid = port.getPID();
27762777
iserial = port.getISerial();
2778+
protocol = port.getProtocol();
27772779
found = true;
27782780
break;
27792781
}
@@ -2784,6 +2786,11 @@ private void handleBoardInfo() {
27842786
return;
27852787
}
27862788

2789+
if (protocol.equals("network")) {
2790+
statusNotice(tr("Network port, can't obtain info"));
2791+
return;
2792+
}
2793+
27872794
if (vid == null || vid.equals("") || vid.equals("0000")) {
27882795
statusNotice(tr("Native serial port, can't obtain info"));
27892796
return;

0 commit comments

Comments
 (0)