[gnoduino: 86/237] auto-upload-and-reset works now at 300 bps. patched avrdude for Mac to support 300 bps connection,
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnoduino: 86/237] auto-upload-and-reset works now at 300 bps. patched avrdude for Mac to support 300 bps connection,
- Date: Sat, 31 Mar 2012 20:22:03 +0000 (UTC)
commit e39c345abe1340bb91585ad512c0cebdf6fcc283
Author: Zach Eveland <zeveland blacklabel-development com>
Date: Sat Aug 27 20:32:34 2011 -0400
auto-upload-and-reset works now at 300 bps. patched avrdude for Mac to support 300 bps connection, changed core and boards.txt to match
arduino/boards.txt | 2 +-
arduino/cores/arduino/CDC.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/arduino/boards.txt b/arduino/boards.txt
index bb5eaad..a96d823 100644
--- a/arduino/boards.txt
+++ b/arduino/boards.txt
@@ -3,7 +3,7 @@
leonardo.name=Arduino Leonardo
leonardo.upload.protocol=stk500
leonardo.upload.maximum_size=30720
-leonardo.upload.speed=1200
+leonardo.upload.speed=300
leonardo.bootloader.low_fuses=0xde
leonardo.bootloader.high_fuses=0xd8
leonardo.bootloader.extended_fuses=0xf3
diff --git a/arduino/cores/arduino/CDC.cpp b/arduino/cores/arduino/CDC.cpp
index 7da9077..b04c79b 100644
--- a/arduino/cores/arduino/CDC.cpp
+++ b/arduino/cores/arduino/CDC.cpp
@@ -94,7 +94,7 @@ bool WEAK CDC_Setup(Setup& setup)
if (CDC_SET_LINE_CODING == r)
{
USB_RecvControl((void*)&_usbLineInfo,7);
- if (1200 == _usbLineInfo.dwDTERate) // auto-reset is triggered when avrdude opens the port at 1200 bps
+ if (300 == _usbLineInfo.dwDTERate) // auto-reset is triggered when avrdude opens the port at 1200 bps
Reboot();
return true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]