mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
Better parametric Bridge.begin()
This commit is contained in:
parent
49a05121d4
commit
fdf10eb663
@ -80,13 +80,8 @@ public:
|
||||
// Empty
|
||||
}
|
||||
|
||||
void begin() {
|
||||
serial.begin(250000); // for Yun
|
||||
BridgeClass::begin();
|
||||
}
|
||||
|
||||
void begin(int baudrate) {
|
||||
serial.begin(baudrate); // for other linux-systems
|
||||
void begin(unsigned long baudrate = 250000) {
|
||||
serial.begin(baudrate);
|
||||
BridgeClass::begin();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user