forked from platformio/platformio-core
Skip grep search for serial ports on Windows machines
This commit is contained in:
@ -315,7 +315,7 @@ def get_serialports(use_grep=False):
|
||||
result.append({"port": p, "description": d, "hwid": h})
|
||||
|
||||
# fix for PySerial
|
||||
if not result:
|
||||
if not result and "Windows" != system():
|
||||
result = _grep_serial_ports()
|
||||
|
||||
return result
|
||||
|
Reference in New Issue
Block a user