From 294abd041907d22336c60ffa7ac835589b5b5b59 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Fri, 23 Oct 2009 23:28:35 +0000 Subject: [PATCH] No longer mangling microcontroller names before passing them to avrdude, as it seems to support the same ones as avr-gcc now. --- app/src/processing/app/debug/AvrdudeUploader.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/processing/app/debug/AvrdudeUploader.java b/app/src/processing/app/debug/AvrdudeUploader.java index a00011f86..61c0c3f4f 100755 --- a/app/src/processing/app/debug/AvrdudeUploader.java +++ b/app/src/processing/app/debug/AvrdudeUploader.java @@ -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);