mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-26 20:54:22 +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
|
name=Bridge
|
||||||
version=1.0.3
|
version=1.0.4
|
||||||
author=Arduino
|
author=Arduino
|
||||||
maintainer=Arduino <info@arduino.cc>
|
maintainer=Arduino <info@arduino.cc>
|
||||||
sentence=Enables the communication between the Linux processor and the AVR. For Arduino Yún and TRE only.
|
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_
|
#ifndef BRIDGE_H_
|
||||||
#define BRIDGE_H_
|
#define BRIDGE_H_
|
||||||
|
|
||||||
|
#ifndef BRIDGE_BAUDRATE
|
||||||
|
#define BRIDGE_BAUDRATE 250000
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include <Stream.h>
|
#include <Stream.h>
|
||||||
|
|
||||||
@ -96,7 +100,7 @@ class SerialBridgeClass : public BridgeClass {
|
|||||||
// Empty
|
// Empty
|
||||||
}
|
}
|
||||||
|
|
||||||
void begin(unsigned long baudrate = 250000) {
|
void begin(unsigned long baudrate = BRIDGE_BAUDRATE) {
|
||||||
serial.begin(baudrate);
|
serial.begin(baudrate);
|
||||||
BridgeClass::begin();
|
BridgeClass::begin();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user