mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-21 15:54:39 +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 vid = "";
|
||||||
String pid = "";
|
String pid = "";
|
||||||
String iserial = "";
|
String iserial = "";
|
||||||
|
String protocol = "";
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
|
|
||||||
for (BoardPort port : ports) {
|
for (BoardPort port : ports) {
|
||||||
@ -2774,6 +2775,7 @@ public class Editor extends JFrame implements RunnerListener {
|
|||||||
vid = port.getVID();
|
vid = port.getVID();
|
||||||
pid = port.getPID();
|
pid = port.getPID();
|
||||||
iserial = port.getISerial();
|
iserial = port.getISerial();
|
||||||
|
protocol = port.getProtocol();
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -2784,6 +2786,11 @@ public class Editor extends JFrame implements RunnerListener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (protocol.equals("network")) {
|
||||||
|
statusNotice(tr("Network port, can't obtain info"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (vid == null || vid.equals("") || vid.equals("0000")) {
|
if (vid == null || vid.equals("") || vid.equals("0000")) {
|
||||||
statusNotice(tr("Native serial port, can't obtain info"));
|
statusNotice(tr("Native serial port, can't obtain info"));
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user