1
0
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:
Federico Fissore 2013-10-18 09:31:07 +02:00
parent 49a05121d4
commit fdf10eb663

View File

@ -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();
}