forked from platformio/platformio-core
Fix "stk500v2_command(): command failed" // Resolve #238
This commit is contained in:
@@ -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)
|
||||||
------------------
|
------------------
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user