mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Merge branch 'develop' of https://github.com/ivankravets/platformio into develop
* 'develop' of https://github.com/ivankravets/platformio: Add missed COMMAND_LINE_TARGETS for microchippic32 Remove program target code from microchippic32
This commit is contained in:
@ -18,15 +18,12 @@
|
||||
|
||||
from os.path import join
|
||||
|
||||
from SCons.Script import (
|
||||
COMMAND_LINE_TARGETS, AlwaysBuild, Builder, Default, DefaultEnvironment)
|
||||
from SCons.Script import (COMMAND_LINE_TARGETS, AlwaysBuild, Builder, Default,
|
||||
DefaultEnvironment)
|
||||
|
||||
|
||||
def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
|
||||
|
||||
if "program" in COMMAND_LINE_TARGETS:
|
||||
return
|
||||
|
||||
env.AutodetectUploadPort()
|
||||
env.Prepend(UPLOADERFLAGS=["-d", '"$UPLOAD_PORT"'])
|
||||
|
||||
|
Reference in New Issue
Block a user