No longer mangling microcontroller names before passing them to avrdude, as it seems to support the same ones as avr-gcc now.

This commit is contained in:
David A. Mellis 2009-10-23 23:28:35 +00:00
parent d29c49a27b
commit 294abd0419
1 changed files with 1 additions and 4 deletions

View File

@ -165,10 +165,7 @@ public class AvrdudeUploader extends Uploader {
commandDownloader.add("-q");
commandDownloader.add("-q");
}
// XXX: quick hack to chop the "atmega" off of "atmega8" and "atmega168",
// then shove an "m" at the beginning. won't work for attiny's, etc.
commandDownloader.add("-pm" +
Preferences.get("boards." + Preferences.get("board") + ".build.mcu").substring(6));
commandDownloader.add("-p" + Preferences.get("boards." + Preferences.get("board") + ".build.mcu"));
commandDownloader.addAll(params);
return executeUploadCommand(commandDownloader);