1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Added menu item to burn bootloader, associated preferences, and hacked Uploader.java to be more flexible.

This commit is contained in:
David A. Mellis
2006-03-21 19:17:31 +00:00
parent 71b23a6318
commit c6704296c1
4 changed files with 118 additions and 63 deletions

View File

@ -1571,8 +1571,7 @@ public class Sketch {
// download the program
//
Uploader downloader =
new Uploader(buildPath, suggestedClassName, this);
Uploader uploader = new Uploader();
// macos9 now officially broken.. see PdeCompilerJavac
//PdeCompiler compiler =
// ((PdeBase.platform == PdeBase.MACOS9) ?
@ -1583,12 +1582,12 @@ public class Sketch {
// which is a wrapped around
// (this will catch and parse errors during compilation
// the messageStream will call message() for 'compiler')
MessageStream messageStream = new MessageStream(downloader);
//MessageStream messageStream = new MessageStream(downloader);
//PrintStream leechErr = new PrintStream(messageStream);
//boolean result = compiler.compileJava(leechErr);
//return compiler.compileJava(leechErr);
boolean success =
downloader.downloadJava(new PrintStream(messageStream));
uploader.uploadUsingPreferences(buildPath, suggestedClassName);
return success ? suggestedClassName : null;
}