Browse Source

🔨 Preflight check old abl files (#24010)

FB4S_WIFI
ellensp 3 years ago
committed by Scott Lahteine
parent
commit
5e68a86968
  1. 4
      buildroot/share/PlatformIO/scripts/preflight-checks.py

4
buildroot/share/PlatformIO/scripts/preflight-checks.py

@ -102,6 +102,10 @@ if pioutil.is_pio_build():
for f in [ "ultralcd_DOGM.cpp", "ultralcd_DOGM.h" ]: for f in [ "ultralcd_DOGM.cpp", "ultralcd_DOGM.h" ]:
if os.path.isfile(os.path.join(p, f)): if os.path.isfile(os.path.join(p, f)):
mixedin += [ f ] mixedin += [ f ]
p = os.path.join(env['PROJECT_DIR'], "Marlin", "src", "feature", "bedlevel", "abl")
for f in [ "abl.cpp", "abl.h" ]:
if os.path.isfile(os.path.join(p, f)):
mixedin += [ f ]
if mixedin: if mixedin:
err = "ERROR: Old files fell into your Marlin folder. Remove %s and try again" % ", ".join(mixedin) err = "ERROR: Old files fell into your Marlin folder. Remove %s and try again" % ", ".join(mixedin)
raise SystemExit(err) raise SystemExit(err)

Loading…
Cancel
Save