Change message if requiring infos from Network port

This commit is contained in:
Martino Facchin 2016-03-03 10:48:50 +01:00
parent e23bbf76c1
commit 821c665460
1 changed files with 7 additions and 0 deletions

View File

@ -2766,6 +2766,7 @@ public class Editor extends JFrame implements RunnerListener {
String vid = "";
String pid = "";
String iserial = "";
String protocol = "";
boolean found = false;
for (BoardPort port : ports) {
@ -2774,6 +2775,7 @@ public class Editor extends JFrame implements RunnerListener {
vid = port.getVID();
pid = port.getPID();
iserial = port.getISerial();
protocol = port.getProtocol();
found = true;
break;
}
@ -2784,6 +2786,11 @@ public class Editor extends JFrame implements RunnerListener {
return;
}
if (protocol.equals("network")) {
statusNotice(tr("Network port, can't obtain info"));
return;
}
if (vid == null || vid.equals("") || vid.equals("0000")) {
statusNotice(tr("Native serial port, can't obtain info"));
return;