Skip to content

Commit b74dad1

Browse files
committed
mod: monitor.begin has baud param that can be passed on to the bridge
1 parent 9226bd1 commit b74dad1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/monitor.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
This Source Code Form is subject to the terms of the Mozilla Public
77
License, v. 2.0. If a copy of the MPL was not distributed with this
88
file, You can obtain one at http://mozilla.org/MPL/2.0/.
9-
9+
1010
*/
1111

1212
#pragma once
@@ -37,12 +37,12 @@ class BridgeMonitor: public Stream {
3737

3838
using Print::write;
3939

40-
bool begin() {
40+
bool begin(unsigned long baudrate=DEFAULT_SERIAL_BAUD) {
4141
k_mutex_init(&monitor_mutex);
4242

4343
bool bridge_started = (*bridge);
4444
if (!bridge_started) {
45-
bridge_started = bridge->begin();
45+
bridge_started = bridge->begin(baudrate);
4646
}
4747
return bridge_started && bridge->call(MON_CONNECTED_METHOD, is_connected);
4848
}

0 commit comments

Comments
 (0)