1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

Bridge: default baudrate is specified with BRIDGE_BAUDRATE. Fixes #2904

This commit is contained in:
Federico Fissore 2015-04-30 16:32:32 +02:00
parent 2d65814451
commit f118dee688
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
name=Bridge
version=1.0.3
version=1.0.4
author=Arduino
maintainer=Arduino <info@arduino.cc>
sentence=Enables the communication between the Linux processor and the AVR. For Arduino Yún and TRE only.

View File

@ -19,6 +19,10 @@
#ifndef BRIDGE_H_
#define BRIDGE_H_
#ifndef BRIDGE_BAUDRATE
#define BRIDGE_BAUDRATE 250000
#endif
#include <Arduino.h>
#include <Stream.h>
@ -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();
}