Fix "stk500v2_command(): command failed" // Resolve #238

This commit is contained in:
Ivan Kravets
2015-06-17 13:35:10 +03:00
parent ca721d7262
commit 4669dc7f16
2 changed files with 6 additions and 1 deletions

View File

@@ -7,6 +7,8 @@ Release History
* Allow to specify library compatibility with the all platforms/frameworks using * Allow to specify library compatibility with the all platforms/frameworks using
``*`` symbol in ``*`` symbol in
`library.json <http://docs.platformio.org/en/latest/librarymanager/config.html>`__ `library.json <http://docs.platformio.org/en/latest/librarymanager/config.html>`__
* Fixed ``stk500v2_command(): command failed``
(`issue #238 <https://github.com/platformio/platformio/issues/238>`_)
2.1.1 (2015-06-09) 2.1.1 (2015-06-09)
------------------ ------------------

View File

@@ -30,7 +30,10 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
env.Replace(UPLOAD_SPEED=None) env.Replace(UPLOAD_SPEED=None)
if env.subst("$UPLOAD_SPEED"): if env.subst("$UPLOAD_SPEED"):
env.Append(UPLOADERFLAGS=["-b", "$UPLOAD_SPEED"]) env.Append(UPLOADERFLAGS=[
"-b", "$UPLOAD_SPEED",
"-D"
])
if not upload_options.get("require_upload_port", False): if not upload_options.get("require_upload_port", False):
return return