Configtool: use absolute path for .hex file when uploading.

There were cases where the working directory got lost and
teacup.hex weren't found.

This should be the last bit to solve issue #132.
This commit is contained in:
Markus Hitter 2015-05-14 11:53:23 +02:00
parent e661170f75
commit 3d2c307c56
1 changed files with 5 additions and 2 deletions

View File

@ -349,8 +349,11 @@ class Upload(wx.Dialog):
else:
cmdpath = "avrdude"
cmd = cmdpath + " -c %s -b %s -p %s -P %s -U flash:w:teacup.hex" % \
(self.settings.programmer, self.baud, self.cpu, self.settings.port)
hexpath = "\"" + join(self.root, "teacup.hex") + "\""
cmd = cmdpath + " -c %s -b %s -p %s -P %s -U flash:w:%s:i" % \
(self.settings.programmer, self.baud, self.cpu, self.settings.port,
hexpath)
self.script.append(cmd)
def uploadUpdate(self, evt):