Merge branch 'mrbeam' of https://github.com/mrbeam/OctoPrint into mrbeam
This commit is contained in:
commit
e3f44df478
2 changed files with 3 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ class SvgToGcodePlugin(octoprint.plugin.SlicerPlugin,
|
||||||
if not machinecode_path:
|
if not machinecode_path:
|
||||||
path, _ = os.path.splitext(model_path)
|
path, _ = os.path.splitext(model_path)
|
||||||
machinecode_path = path + ".gco"
|
machinecode_path = path + ".gco"
|
||||||
|
|
||||||
self._svgtogcode_logger.info("### Slicing %s to %s using profile stored at %s" % (model_path, machinecode_path, profile_path))
|
self._svgtogcode_logger.info("### Slicing %s to %s using profile stored at %s" % (model_path, machinecode_path, profile_path))
|
||||||
|
|
||||||
## direct call
|
## direct call
|
||||||
|
|
|
||||||
|
|
@ -885,6 +885,8 @@ class MachineCom(object):
|
||||||
pathToGrblHex = cwd + "/../grbl/grbl.hex"
|
pathToGrblHex = cwd + "/../grbl/grbl.hex"
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
# TODO check if avrdude is installed.
|
||||||
|
# TODO log in logfile as well, not only to the serial monitor (use self._logger.info()... )
|
||||||
params = ["avrdude", "-patmega328p", "-carduino", "-b" + str(self._baudrate), "-P" + str(self._port), "-D", "-Uflash:w:" + pathToGrblHex]
|
params = ["avrdude", "-patmega328p", "-carduino", "-b" + str(self._baudrate), "-P" + str(self._port), "-D", "-Uflash:w:" + pathToGrblHex]
|
||||||
returnCode = subprocess.call(params)
|
returnCode = subprocess.call(params)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue