Improve firmware uploading to Arduino Leonardo based boards // Resolve #691

This commit is contained in:
Ivan Kravets
2016-06-11 23:35:29 +03:00
parent 9fb7f251f6
commit 3b8bc42266
2 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,8 @@ PlatformIO 2.0
the size of a credit card
* Check program size before uploading to the board
(`issue #689 <https://github.com/platformio/platformio/issues/689>`_)
* Improved firmware uploading to Arduino Leonardo based boards
(`issue #691 <https://github.com/platformio/platformio/issues/691>`_)
* Fixed issue with ``-L relative/path`` when parsing ``build_flags``
(`issue #688 <https://github.com/platformio/platformio/issues/688>`_)

View File

@ -54,6 +54,7 @@ def WaitForNewSerialPort(env, before):
prev_port = env.subst("$UPLOAD_PORT")
new_port = None
elapsed = 0
sleep(1)
while elapsed < 5 and new_port is None:
now = util.get_serialports()
for p in now: