mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Check mbed html page before uploading
This commit is contained in:
@ -107,7 +107,10 @@ def AutodetectUploadPort(*args, **kwargs): # pylint: disable=unused-argument
|
||||
if (item['name'] and
|
||||
any([l in item['name'].lower() for l in msdlabels])):
|
||||
return item['disk']
|
||||
if isfile(join(item['disk'], "mbed.html")):
|
||||
if any([
|
||||
isfile(join(item['disk'], n))
|
||||
for n in ("mbed.htm", "mbed.html")
|
||||
]):
|
||||
return item['disk']
|
||||
return None
|
||||
|
||||
|
Reference in New Issue
Block a user