mirror of https://github.com/noisymime/Arduino.git
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:
parent
7ffb4cd25d
commit
ad332d7129
|
@ -63,7 +63,10 @@ public class AvrdudeUploader extends Uploader {
|
||||||
commandDownloader.add("-D"); // don't erase
|
commandDownloader.add("-D"); // don't erase
|
||||||
commandDownloader.add("-Uflash:w:" + buildPath + File.separator + className + ".hex:i");
|
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);
|
return avrdude(commandDownloader);
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,6 +64,7 @@ bt.name=Arduino BT
|
||||||
bt.upload.protocol=stk500
|
bt.upload.protocol=stk500
|
||||||
bt.upload.maximum_size=14336
|
bt.upload.maximum_size=14336
|
||||||
bt.upload.speed=19200
|
bt.upload.speed=19200
|
||||||
|
bt.upload.disable_flushing=true
|
||||||
|
|
||||||
bt.bootloader.low_fuses=0xff
|
bt.bootloader.low_fuses=0xff
|
||||||
bt.bootloader.high_fuses=0xdd
|
bt.bootloader.high_fuses=0xdd
|
||||||
|
|
Loading…
Reference in New Issue