mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-01 02:54:25 +02:00
Minor fix
This commit is contained in:
@@ -589,8 +589,8 @@ when :option:`platformio run --target` is called with ``upload`` value.
|
|||||||
# do some actions
|
# do some actions
|
||||||
|
|
||||||
|
|
||||||
def after_uploads(source, target, env):
|
def after_upload(source, target, env):
|
||||||
print "after_uploads"
|
print "after_upload"
|
||||||
# do some actions
|
# do some actions
|
||||||
|
|
||||||
print "Current build targets", map(str, BUILD_TARGETS)
|
print "Current build targets", map(str, BUILD_TARGETS)
|
||||||
@@ -599,7 +599,7 @@ when :option:`platformio run --target` is called with ``upload`` value.
|
|||||||
# env.AddPostAction("$BUILD_DIR/firmware.hex", callback...)
|
# env.AddPostAction("$BUILD_DIR/firmware.hex", callback...)
|
||||||
|
|
||||||
env.AddPreAction("upload", before_upload)
|
env.AddPreAction("upload", before_upload)
|
||||||
env.AddPostAction("upload", after_uploads)
|
env.AddPostAction("upload", after_upload)
|
||||||
|
|
||||||
|
|
||||||
.. _projectconf_targets:
|
.. _projectconf_targets:
|
||||||
|
Reference in New Issue
Block a user