mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-11 15:21:21 +00:00
feat: Add support for esptool v5 and keep v4 for now
This commit is contained in:
@@ -38,7 +38,7 @@ def get_running_partition(port=None):
|
||||
try:
|
||||
# Check what esptool.py finds on what port the device is connected to
|
||||
output = subprocess.check_output([sys.executable, ESPTOOL_PY, 'chip_id']) # may raise CalledProcessError
|
||||
pattern = r'Serial port ([\S]+)'
|
||||
pattern = r'Serial port ([^:\s]+)'
|
||||
pattern = re.compile(pattern.encode())
|
||||
|
||||
port = re.search(pattern, output).group(1) # may raise AttributeError
|
||||
|
Reference in New Issue
Block a user