mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
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("-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);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user