We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9226bd1 commit b74dad1Copy full SHA for b74dad1
src/monitor.h
@@ -6,7 +6,7 @@
6
This Source Code Form is subject to the terms of the Mozilla Public
7
License, v. 2.0. If a copy of the MPL was not distributed with this
8
file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
-
+
10
*/
11
12
#pragma once
@@ -37,12 +37,12 @@ class BridgeMonitor: public Stream {
37
38
using Print::write;
39
40
- bool begin() {
+ bool begin(unsigned long baudrate=DEFAULT_SERIAL_BAUD) {
41
k_mutex_init(&monitor_mutex);
42
43
bool bridge_started = (*bridge);
44
if (!bridge_started) {
45
- bridge_started = bridge->begin();
+ bridge_started = bridge->begin(baudrate);
46
}
47
return bridge_started && bridge->call(MON_CONNECTED_METHOD, is_connected);
48
0 commit comments