Merge branch 'mrbeam' of https://github.com/mrbeam/OctoPrint into mrbeam

This commit is contained in:
make-ing 2015-09-23 14:08:24 +02:00
commit e3f44df478
2 changed files with 3 additions and 1 deletions

View file

@ -885,6 +885,8 @@ class MachineCom(object):
pathToGrblHex = cwd + "/../grbl/grbl.hex"
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]
returnCode = subprocess.call(params)