File tree 1 file changed +7
-0
lines changed 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -2760,6 +2760,7 @@ private void handleBoardInfo() {
2760
2760
String vid = "" ;
2761
2761
String pid = "" ;
2762
2762
String iserial = "" ;
2763
+ String protocol = "" ;
2763
2764
boolean found = false ;
2764
2765
2765
2766
for (BoardPort port : ports ) {
@@ -2768,6 +2769,7 @@ private void handleBoardInfo() {
2768
2769
vid = port .getVID ();
2769
2770
pid = port .getPID ();
2770
2771
iserial = port .getISerial ();
2772
+ protocol = port .getProtocol ();
2771
2773
found = true ;
2772
2774
break ;
2773
2775
}
@@ -2778,6 +2780,11 @@ private void handleBoardInfo() {
2778
2780
return ;
2779
2781
}
2780
2782
2783
+ if (protocol .equals ("network" )) {
2784
+ statusNotice (tr ("Network port, can't obtain info" ));
2785
+ return ;
2786
+ }
2787
+
2781
2788
if (vid == null || vid .equals ("" ) || vid .equals ("0000" )) {
2782
2789
statusNotice (tr ("Native serial port, can't obtain info" ));
2783
2790
return ;
You can’t perform that action at this time.
0 commit comments