Skip to content

Commit

Permalink
Support Linux firmware download
Browse files Browse the repository at this point in the history
Specifically Debian Jessie
  • Loading branch information
seken committed Jun 7, 2015
1 parent ee2cc0b commit a31baea
Show file tree
Hide file tree
Showing 3 changed files with 16,718 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mDrawGui/HexDownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ def startDownloadUno(self, com, hexfile):
avrdudepath = robot_gui.getPkgPath("avrdude")
confpath = robot_gui.getPkgPath("avrdude.conf")
hexfile = robot_gui.getPkgPath(hexfile)
elif "Linux" in systemType:
avrdudepath = '/usr/bin/avrdude'
confpath = robot_gui.getPkgPath("avrdude.linux.conf")
hexfile = robot_gui.getPkgPath(hexfile)
print systemType
cmd = u"%s -C%s -v -v -v -v -patmega328p -carduino -P%s -b115200 -D -Uflash:w:%s:i" %(avrdudepath,confpath,com,hexfile)
self.moveListThread = WorkInThread(self.downloadThread,cmd)
self.moveListThread.setDaemon(True)
Expand Down
Loading

0 comments on commit a31baea

Please sign in to comment.