mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Skip converting if INO nodes are not found
This commit is contained in:
@ -179,6 +179,8 @@ class InoToCPPConverter(object):
|
|||||||
def ConvertInoToCpp(env):
|
def ConvertInoToCpp(env):
|
||||||
ino_nodes = (env.Glob(join("$PROJECTSRC_DIR", "*.ino")) +
|
ino_nodes = (env.Glob(join("$PROJECTSRC_DIR", "*.ino")) +
|
||||||
env.Glob(join("$PROJECTSRC_DIR", "*.pde")))
|
env.Glob(join("$PROJECTSRC_DIR", "*.pde")))
|
||||||
|
if not ino_nodes:
|
||||||
|
return
|
||||||
c = InoToCPPConverter(env)
|
c = InoToCPPConverter(env)
|
||||||
out_file = c.convert(ino_nodes)
|
out_file = c.convert(ino_nodes)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user