Skip to content

Commit f118dee

Browse files
author
Federico Fissore
committed
Bridge: default baudrate is specified with BRIDGE_BAUDRATE. Fixes #2904
1 parent 2d65814 commit f118dee

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: libraries/Bridge/library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Bridge
2-
version=1.0.3
2+
version=1.0.4
33
author=Arduino
44
maintainer=Arduino <[email protected]>
55
sentence=Enables the communication between the Linux processor and the AVR. For Arduino Yún and TRE only.

Diff for: libraries/Bridge/src/Bridge.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
#ifndef BRIDGE_H_
2020
#define BRIDGE_H_
2121

22+
#ifndef BRIDGE_BAUDRATE
23+
#define BRIDGE_BAUDRATE 250000
24+
#endif
25+
2226
#include <Arduino.h>
2327
#include <Stream.h>
2428

@@ -96,7 +100,7 @@ class SerialBridgeClass : public BridgeClass {
96100
// Empty
97101
}
98102

99-
void begin(unsigned long baudrate = 250000) {
103+
void begin(unsigned long baudrate = BRIDGE_BAUDRATE) {
100104
serial.begin(baudrate);
101105
BridgeClass::begin();
102106
}

0 commit comments

Comments
 (0)