Skip to content

Commit b418316

Browse files
committed
Change message if requiring infos from Network port
1 parent f6bccab commit b418316

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
@@ -2760,6 +2760,7 @@ private void handleBoardInfo() {
27602760
String vid = "";
27612761
String pid = "";
27622762
String iserial = "";
2763+
String protocol = "";
27632764
boolean found = false;
27642765

27652766
for (BoardPort port : ports) {
@@ -2768,6 +2769,7 @@ private void handleBoardInfo() {
27682769
vid = port.getVID();
27692770
pid = port.getPID();
27702771
iserial = port.getISerial();
2772+
protocol = port.getProtocol();
27712773
found = true;
27722774
break;
27732775
}
@@ -2778,6 +2780,11 @@ private void handleBoardInfo() {
27782780
return;
27792781
}
27802782

2783+
if (protocol.equals("network")) {
2784+
statusNotice(tr("Network port, can't obtain info"));
2785+
return;
2786+
}
2787+
27812788
if (vid == null || vid.equals("") || vid.equals("0000")) {
27822789
statusNotice(tr("Native serial port, can't obtain info"));
27832790
return;

0 commit comments

Comments
 (0)