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 @@ -2766,6 +2766,7 @@ private void handleBoardInfo() {
2766
2766
String vid = "" ;
2767
2767
String pid = "" ;
2768
2768
String iserial = "" ;
2769
+ String protocol = "" ;
2769
2770
boolean found = false ;
2770
2771
2771
2772
for (BoardPort port : ports ) {
@@ -2774,6 +2775,7 @@ private void handleBoardInfo() {
2774
2775
vid = port .getVID ();
2775
2776
pid = port .getPID ();
2776
2777
iserial = port .getISerial ();
2778
+ protocol = port .getProtocol ();
2777
2779
found = true ;
2778
2780
break ;
2779
2781
}
@@ -2784,6 +2786,11 @@ private void handleBoardInfo() {
2784
2786
return ;
2785
2787
}
2786
2788
2789
+ if (protocol .equals ("network" )) {
2790
+ statusNotice (tr ("Network port, can't obtain info" ));
2791
+ return ;
2792
+ }
2793
+
2787
2794
if (vid == null || vid .equals ("" ) || vid .equals ("0000" )) {
2788
2795
statusNotice (tr ("Native serial port, can't obtain info" ));
2789
2796
return ;
You can’t perform that action at this time.
0 commit comments