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:
parent
2d65814451
commit
f118dee688
@ -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.
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user