mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
Change message if requiring infos from Network port
This commit is contained in:
parent
e23bbf76c1
commit
821c665460
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user