From f118dee6882343a70c1b1793335e0d6eec37449a Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Thu, 30 Apr 2015 16:32:32 +0200 Subject: [PATCH] Bridge: default baudrate is specified with BRIDGE_BAUDRATE. Fixes #2904 --- libraries/Bridge/library.properties | 2 +- libraries/Bridge/src/Bridge.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libraries/Bridge/library.properties b/libraries/Bridge/library.properties index 320cb4436..dd8eba068 100644 --- a/libraries/Bridge/library.properties +++ b/libraries/Bridge/library.properties @@ -1,5 +1,5 @@ name=Bridge -version=1.0.3 +version=1.0.4 author=Arduino maintainer=Arduino sentence=Enables the communication between the Linux processor and the AVR. For Arduino Yún and TRE only. diff --git a/libraries/Bridge/src/Bridge.h b/libraries/Bridge/src/Bridge.h index 954571a62..14f86cbd3 100644 --- a/libraries/Bridge/src/Bridge.h +++ b/libraries/Bridge/src/Bridge.h @@ -19,6 +19,10 @@ #ifndef BRIDGE_H_ #define BRIDGE_H_ +#ifndef BRIDGE_BAUDRATE +#define BRIDGE_BAUDRATE 250000 +#endif + #include #include @@ -96,7 +100,7 @@ class SerialBridgeClass : public BridgeClass { // Empty } - void begin(unsigned long baudrate = 250000) { + void begin(unsigned long baudrate = BRIDGE_BAUDRATE) { serial.begin(baudrate); BridgeClass::begin(); }