Skip to content

Commit b0941ad

Browse files
author
cow77
committed
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).
1 parent fa04bd7 commit b0941ad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libraries/Bridge/src/Bridge.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,12 @@ class SerialBridgeClass : public BridgeClass {
8181
}
8282

8383
void begin() {
84-
serial.begin(250000);
84+
serial.begin(250000); // for Yun
85+
BridgeClass::begin();
86+
}
87+
88+
void begin(int baudrate) {
89+
serial.begin(baudrate); // for other linux-systems
8590
BridgeClass::begin();
8691
}
8792

0 commit comments

Comments
 (0)