removed debug messages after avrdude bug fix

This commit is contained in:
make-ing 2015-09-07 15:59:58 +02:00
parent dabcca4297
commit 469f2cb3f1

View file

@ -872,11 +872,10 @@ class MachineCom(object):
cwd = os.path.dirname(__file__)
pathToGrblHex = cwd + "/../grbl/grbl.hex"
import subprocess
try:
params = ["avrdude", "-patmega328p", "-carduino", "-b" + str(self._baudrate), "-P" + str(self._port), "-D", "-Uflash:w:" + pathToGrblHex]
returnCode = subprocess.call(params)
except:
self._log("Error in subprocess.call()")
params = ["avrdude", "-patmega328p", "-carduino", "-b" + str(self._baudrate), "-P" + str(self._port), "-D", "-Uflash:w:" + pathToGrblHex]
returnCode = subprocess.call(params)
if returnCode == False:
self._log("successfully flashed new grbl version")
self._openSerial()
@ -885,7 +884,6 @@ class MachineCom(object):
self._errorValue = "avrdude returncode: %s" % returnCode
self._changeState(self.STATE_CLOSED_WITH_ERROR)
def _monitor(self):
feedback_controls, feedback_matcher = convert_feedback_controls(settings().get(["controls"]))
feedback_errors = []