amperka / ino

Command line toolkit for working with Arduino hardware

Home Page:http://inotool.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for "do not verify" avrdude option?

uino opened this issue · comments

commented

Hi,

Thanks for the very useful tool that you're developing!
I have a little feature wish that should take only 3 lines of code to implement (I wish I knew more Python to do a pull request directly).
The idea is simply to add an option to "ino upload" (and also in the ino.ini file) so as to support for the "-V" option of "avrdude". This option makes uploading code twice faster.

Thanks!

commented

Note that, to force the -V option by default and obtain faster upload, it suffices to modify the bottom of the file "ino/commands/upload.py" and add "-V" there.

    # call avrdude to upload .hex
    subprocess.call([
        self.e['avrdude'],
        '-C', self.e['avrdude.conf'],
        '-p', board['build']['mcu'],
        '-P', port,
        '-c', protocol,
        '-b', board['upload']['speed'],
        '-D',
        '-V', # <===== added
        '-U', 'flash:w:%s:i' % self.e['hex_path'],