Disabling flushing of the serial port for the BT (bluetooth) board. It seems to fix uploading to it under Mac OS X 10.5 (Leopard).

This commit is contained in:
David A. Mellis 2008-03-05 00:48:08 +00:00
parent 7ffb4cd25d
commit ad332d7129
2 changed files with 5 additions and 1 deletions

View File

@ -63,7 +63,10 @@ public class AvrdudeUploader extends Uploader {
commandDownloader.add("-D"); // don't erase
commandDownloader.add("-Uflash:w:" + buildPath + File.separator + className + ".hex:i");
flushSerialBuffer();
if (Preferences.get("boards." + Preferences.get("board") + ".upload.disable_flushing") == null ||
Preferences.getBoolean("boards." + Preferences.get("board") + ".upload.disable_flushing") == false) {
flushSerialBuffer();
}
return avrdude(commandDownloader);
}

View File

@ -64,6 +64,7 @@ bt.name=Arduino BT
bt.upload.protocol=stk500
bt.upload.maximum_size=14336
bt.upload.speed=19200
bt.upload.disable_flushing=true
bt.bootloader.low_fuses=0xff
bt.bootloader.high_fuses=0xdd