File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ function scanWPorts() {
420
420
// Get consistently formatted port path; If Windows, strip off possible leading port origin path for ease in comparison
421
421
var portPath = ( ( platform === pfWin ) && ( port . path . indexOf ( winPortOrigin ) === 0 ) ) ? port . path . slice ( winPortOriginLen ) : port . path ;
422
422
// Add only proper port types (platform specific and excluding bluetooth ports)
423
- if ( ( portPath . indexOf ( portPattern [ platform ] ) === 0 ) && ( port . displayName . indexOf ( ' bt ' ) === - 1 && port . displayName . indexOf ( 'bluetooth' ) === - 1 ) ) {
423
+ if ( ( portPath . indexOf ( portPattern [ platform ] ) === 0 ) && ( port . displayName . toLowerCase ( ) . indexOf ( ' bt ' ) === - 1 && port . displayName . toLowerCase ( ) . indexOf ( 'bluetooth' ) === - 1 ) ) {
424
424
addPort ( { path : port . path } ) ;
425
425
}
426
426
} ) ;
You can’t perform that action at this time.
0 commit comments