1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-08-22 14:12:59 +02:00

Force converter return code to 0

This commit is contained in:
Mitch Bradley
2022-02-08 09:01:59 -10:00
parent c7e523cd20
commit f2e3bb9dea

View File

@@ -34,7 +34,9 @@ def convertMachine(baseName, verbose=True, extraArgs=None):
out_filename = "yaml/" + Path(baseName).stem + ".yaml"
proc = subprocess.run(cmd, env=env, stdout=open(out_filename, "w"), stderr=subprocess.STDOUT, bufsize=1)
print("FluidNC Configuration written to", out_filename)
return proc.returncode
# Sometimes proc.returncode seems to be 245 even when things are okay,
# so we just return 0.
return 0
else:
out_filename = "yaml/" + Path(baseName).stem + ".ERROR"
open(out_filename, "w")