Skip converting if INO nodes are not found

This commit is contained in:
Ivan Kravets
2016-09-02 15:19:54 +03:00
parent 6442c86084
commit a48201f60f

View File

@ -179,6 +179,8 @@ class InoToCPPConverter(object):
def ConvertInoToCpp(env):
ino_nodes = (env.Glob(join("$PROJECTSRC_DIR", "*.ino")) +
env.Glob(join("$PROJECTSRC_DIR", "*.pde")))
if not ino_nodes:
return
c = InoToCPPConverter(env)
out_file = c.convert(ino_nodes)