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:
parent
e661170f75
commit
3d2c307c56
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue