mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-22 22:25:16 +02:00
Force converter return code to 0
This commit is contained in:
@@ -34,7 +34,9 @@ def convertMachine(baseName, verbose=True, extraArgs=None):
|
|||||||
out_filename = "yaml/" + Path(baseName).stem + ".yaml"
|
out_filename = "yaml/" + Path(baseName).stem + ".yaml"
|
||||||
proc = subprocess.run(cmd, env=env, stdout=open(out_filename, "w"), stderr=subprocess.STDOUT, bufsize=1)
|
proc = subprocess.run(cmd, env=env, stdout=open(out_filename, "w"), stderr=subprocess.STDOUT, bufsize=1)
|
||||||
print("FluidNC Configuration written to", out_filename)
|
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:
|
else:
|
||||||
out_filename = "yaml/" + Path(baseName).stem + ".ERROR"
|
out_filename = "yaml/" + Path(baseName).stem + ".ERROR"
|
||||||
open(out_filename, "w")
|
open(out_filename, "w")
|
||||||
|
Reference in New Issue
Block a user