mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-29 17:19:50 +02:00
Fixed problem when converting a TMC2208 machine
This commit is contained in:
@@ -71,6 +71,7 @@ namespace Motors {
|
|||||||
init_step_dir_pins(); // from StandardStepper
|
init_step_dir_pins(); // from StandardStepper
|
||||||
config_message();
|
config_message();
|
||||||
|
|
||||||
|
#ifndef NATIVE
|
||||||
tmcstepper->begin();
|
tmcstepper->begin();
|
||||||
|
|
||||||
_has_errors = !test(); // Try communicating with motor. Prints an error if there is a problem.
|
_has_errors = !test(); // Try communicating with motor. Prints an error if there is a problem.
|
||||||
@@ -96,6 +97,7 @@ namespace Motors {
|
|||||||
// core
|
// core
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -32,11 +32,9 @@ def convertMachine(baseName, verbose=True, extraArgs=None):
|
|||||||
if app.returncode == 0:
|
if app.returncode == 0:
|
||||||
cmd = [ '.pio/build/' + pioEnv + '/program' ]
|
cmd = [ '.pio/build/' + pioEnv + '/program' ]
|
||||||
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"), 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)
|
||||||
# Sometimes proc.returncode seems to be 245 even when things are okay,
|
return proc.returncode
|
||||||
# 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