mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-25 06:22:11 +03:00
Bridge: default baudrate is specified with BRIDGE_BAUDRATE. Fixes #2904
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user