Skip to content

Commit bb44eb3

Browse files
authored
Merge pull request #46 from arduino-libraries/minor_cleanup
mod: rem bridge unused class param
2 parents 6c431a6 + 994c6cf commit bb44eb3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/bridge.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,6 @@ class BridgeClass {
159159

160160
bool started = false;
161161

162-
MsgPack::str_t router_ver;
163-
164162
public:
165163

166164
explicit BridgeClass(HardwareSerial& serial) {

src/monitor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class BridgeMonitor: public Stream {
3131
RingBufferN<BufferSize> temp_buffer;
3232
struct k_mutex monitor_mutex{};
3333
bool _connected = false;
34-
bool _compatibility_mode;
34+
bool _compatibility_mode = true;
3535

3636
public:
3737
explicit BridgeMonitor(BridgeClass& bridge): bridge(&bridge) {}
@@ -61,7 +61,7 @@ class BridgeMonitor: public Stream {
6161
bool out = false;
6262
_connected = bridge->call(MON_CONNECTED_METHOD).result(out) && out;
6363
MsgPack::str_t ver;
64-
_compatibility_mode = !bridge->call(GET_VERSION_METHOD).result(ver);
64+
_compatibility_mode = !bridge->getRouterVersion(ver);
6565
k_mutex_unlock(&monitor_mutex);
6666
return out;
6767
}

0 commit comments

Comments
 (0)