File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -159,8 +159,6 @@ class BridgeClass {
159159
160160 bool started = false ;
161161
162- MsgPack::str_t router_ver;
163-
164162public:
165163
166164 explicit BridgeClass (HardwareSerial& serial) {
Original file line number Diff line number Diff 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
3636public:
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 }
You can’t perform that action at this time.
0 commit comments