mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Makes it possible to link to another linux-system, not running with
250000 (not Yun, but f.i. an Arduino mega2560 with a modified/expanded WR703N). The default could stay at 250000 (Yun).
This commit is contained in:
@ -81,7 +81,12 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void begin() {
|
void begin() {
|
||||||
serial.begin(250000);
|
serial.begin(250000); // for Yun
|
||||||
|
BridgeClass::begin();
|
||||||
|
}
|
||||||
|
|
||||||
|
void begin(int baudrate) {
|
||||||
|
serial.begin(baudrate); // for other linux-systems
|
||||||
BridgeClass::begin();
|
BridgeClass::begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user